diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-05-08 16:06:20 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-05-08 16:56:48 +1000 |
commit | f5159b3bc26a7a0680d634010c03ea456779bf82 (patch) | |
tree | a98a677c90212f43670cfb926b7c7e269bb79d03 /db | |
parent | 0eb74426b3eeacf92cd144e6ddc336adbe43ca1e (diff) | |
download | gitlab-ce-f5159b3bc26a7a0680d634010c03ea456779bf82.tar.gz |
Add MakeRemoteMirrorsDisabledByDefault DB migration
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb b/db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb new file mode 100644 index 00000000000..0d8a8357a1e --- /dev/null +++ b/db/migrate/20180508055821_make_remote_mirrors_disabled_by_default.rb @@ -0,0 +1,11 @@ +class MakeRemoteMirrorsDisabledByDefault < ActiveRecord::Migration + DOWNTIME = false + + def up + change_column_default :remote_mirrors, :enabled, false + end + + def down + change_column_default :remote_mirrors, :enabled, true + end +end diff --git a/db/schema.rb b/db/schema.rb index 65e9cc4ea08..6fd10785d77 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180503200320) do +ActiveRecord::Schema.define(version: 20180508055821) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1712,7 +1712,7 @@ ActiveRecord::Schema.define(version: 20180503200320) do create_table "remote_mirrors", force: :cascade do |t| t.integer "project_id" t.string "url" - t.boolean "enabled", default: true + t.boolean "enabled", default: false t.string "update_status" t.datetime "last_update_at" t.datetime "last_successful_update_at" |