Commit dd980b46 authored by Douwe Maan's avatar Douwe Maan

Use up and down

parent 5cc2315e
class CreateMergeRequestDiffs < ActiveRecord::Migration class CreateMergeRequestDiffs < ActiveRecord::Migration
def change def up
create_table :merge_request_diffs do |t| create_table :merge_request_diffs do |t|
t.string :state, null: false, default: 'collected' t.string :state, null: false, default: 'collected'
t.text :st_commits, null: true t.text :st_commits, null: true
...@@ -14,4 +14,8 @@ class CreateMergeRequestDiffs < ActiveRecord::Migration ...@@ -14,4 +14,8 @@ class CreateMergeRequestDiffs < ActiveRecord::Migration
change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647 change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647
end end
end end
def down
drop_table :merge_request_diffs
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment