Use up and down
This commit is contained in:
parent
5cc2315ee8
commit
dd980b46f1
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue