diff options
author | James Lopez <james@jameslopez.es> | 2017-04-19 17:50:23 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-04-19 17:50:23 +0300 |
commit | 71a594c676c6e0e66fa3ff94647c053136d872c3 (patch) | |
tree | 4b38f5a427c304c309bd528a9a28f3792ee229de /db | |
parent | db50cb18af92dfd7212c4de6ec61f51fa454f684 (diff) |
fix migration
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb b/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb index 41508c2dc95..ff255148311 100644 --- a/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb +++ b/db/migrate/20130218141344_convert_closed_to_state_in_milestone.rb @@ -2,6 +2,8 @@ class ConvertClosedToStateInMilestone < ActiveRecord::Migration include Gitlab::Database + DOWNTIME = false + def up execute "UPDATE #{table_name} SET state = 'closed' WHERE closed = #{true_value}" execute "UPDATE #{table_name} SET state = 'active' WHERE closed = #{false_value}" |