Use up and down

This commit is contained in:
Douwe Maan 2015-12-09 09:08:53 +01:00
parent 5cc2315ee8
commit dd980b46f1

View file

@ -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