diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-09 09:08:53 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-09 09:08:53 +0100 |
commit | dd980b46f1833ba72207846c66995e517b63b50d (patch) | |
tree | e47aec470c87548d0cc7e807322126ce2429e87f /db | |
parent | 5cc2315ee8beeed3af251e67108d86ae65d35109 (diff) | |
download | gitlab-ce-dd980b46f1833ba72207846c66995e517b63b50d.tar.gz |
Use up and down
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20140122112253_create_merge_request_diffs.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20140122112253_create_merge_request_diffs.rb b/db/migrate/20140122112253_create_merge_request_diffs.rb index 47bee269f9c..f34e30925df 100644 --- a/db/migrate/20140122112253_create_merge_request_diffs.rb +++ b/db/migrate/20140122112253_create_merge_request_diffs.rb @@ -1,5 +1,5 @@ class CreateMergeRequestDiffs < ActiveRecord::Migration - def change + def up create_table :merge_request_diffs do |t| t.string :state, null: false, default: 'collected' t.text :st_commits, null: true @@ -14,4 +14,8 @@ class CreateMergeRequestDiffs < ActiveRecord::Migration change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647 end end + + def down + drop_table :merge_request_diffs + end end |