Add environment_scope to cluster table
This commit is contained in:
parent
6369db0196
commit
98bb78a4bd
2 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
class AddEnvironmentScopeToClusters < ActiveRecord::Migration
|
||||||
|
include Gitlab::Database::MigrationHelpers
|
||||||
|
|
||||||
|
DOWNTIME = false
|
||||||
|
|
||||||
|
disable_ddl_transaction!
|
||||||
|
|
||||||
|
def up
|
||||||
|
add_column_with_default(:clusters, :environment_scope, :string, default: '*')
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column(:clusters, :environment_scope)
|
||||||
|
end
|
||||||
|
end
|
|
@ -523,6 +523,7 @@ ActiveRecord::Schema.define(version: 20171121144800) do
|
||||||
t.datetime_with_timezone "updated_at", null: false
|
t.datetime_with_timezone "updated_at", null: false
|
||||||
t.boolean "enabled", default: true
|
t.boolean "enabled", default: true
|
||||||
t.string "name", null: false
|
t.string "name", null: false
|
||||||
|
t.string "environment_scope", default: "*", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "clusters", ["enabled"], name: "index_clusters_on_enabled", using: :btree
|
add_index "clusters", ["enabled"], name: "index_clusters_on_enabled", using: :btree
|
||||||
|
|
Loading…
Reference in a new issue