diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 18:54:30 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 18:54:30 +0400 |
commit | e5f048f44d054c0e825c880f7b58f0288cdc122f (patch) | |
tree | 983462983cba5542c0ca5b00f2e1aa28591a2322 /db/migrate/20130218141536_remove_closed_from_merge_request.rb | |
parent | 41e97a766b2cf5f75bfca5bb892e49eba720a330 (diff) |
Migrations refactored ro support data convertion
Diffstat (limited to 'db/migrate/20130218141536_remove_closed_from_merge_request.rb')
-rw-r--r-- | db/migrate/20130218141536_remove_closed_from_merge_request.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130218141536_remove_closed_from_merge_request.rb b/db/migrate/20130218141536_remove_closed_from_merge_request.rb new file mode 100644 index 00000000000..371835938b2 --- /dev/null +++ b/db/migrate/20130218141536_remove_closed_from_merge_request.rb @@ -0,0 +1,9 @@ +class RemoveClosedFromMergeRequest < ActiveRecord::Migration + def up + remove_column :merge_requests, :closed + end + + def down + add_column :merge_requests, :closed, :boolean + end +end |