diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-07-13 19:10:37 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-07-13 19:10:37 -0500 |
commit | c951130f82944435ca6885c432792073f2ffe359 (patch) | |
tree | f06fc050ba894d1ee88b0b43a98be475f8eeec81 | |
parent | 7968484dfa363537e6e7822ca1ec100bcd0ec4f8 (diff) | |
download | gitlab-ce-rs-remove-lock-default.tar.gz |
Remove default value from AddLockToIssuablesrs-remove-lock-default
This shouldn't be necessary for optimistic locking, per
https://github.com/rails/rails/issues/18422, and was causing a migration
timeout during deploy, even with our `add_column_with_default` helper.
-rw-r--r-- | db/migrate/20160707104333_add_lock_to_issuables.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20160707104333_add_lock_to_issuables.rb b/db/migrate/20160707104333_add_lock_to_issuables.rb index cb516672800..7383b5c4944 100644 --- a/db/migrate/20160707104333_add_lock_to_issuables.rb +++ b/db/migrate/20160707104333_add_lock_to_issuables.rb @@ -6,8 +6,8 @@ class AddLockToIssuables < ActiveRecord::Migration disable_ddl_transaction! def up - add_column_with_default :issues, :lock_version, :integer, default: 0 - add_column_with_default :merge_requests, :lock_version, :integer, default: 0 + add_column :issues, :lock_version, :integer + add_column :merge_requests, :lock_version, :integer end def down |