Add enabled column to geo_nodes table

parent cd0400ab
class AddEnabledToGeoNodes < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default :geo_nodes, :enabled, :boolean, default: true
end
def down
remove_column :geo_nodes, :enabled
end
end
......@@ -529,6 +529,7 @@ ActiveRecord::Schema.define(version: 20170306180725) do
t.string "access_key"
t.string "encrypted_secret_access_key"
t.string "encrypted_secret_access_key_iv"
t.boolean "enabled", default: true, null: false
end
add_index "geo_nodes", ["access_key"], name: "index_geo_nodes_on_access_key", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment