diff options
Diffstat (limited to 'db/migrate/20161006104309_add_state_to_environment.rb')
-rw-r--r-- | db/migrate/20161006104309_add_state_to_environment.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20161006104309_add_state_to_environment.rb b/db/migrate/20161006104309_add_state_to_environment.rb new file mode 100644 index 00000000000..83dff07069f --- /dev/null +++ b/db/migrate/20161006104309_add_state_to_environment.rb @@ -0,0 +1,15 @@ +class AddStateToEnvironment < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + disable_ddl_transaction! + + DOWNTIME = false + + def up + add_column_with_default(:environments, :state, :string, default: :opened) + end + + def down + remove_column(:environments, :state) + end +end |