10 lines
234 B
Ruby
10 lines
234 B
Ruby
|
class ChangeProjectIdToNullInSnipepts < ActiveRecord::Migration
|
||
|
def up
|
||
|
change_column :snippets, :project_id, :integer, :null => true
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
change_column :snippets, :project_id, :integer, :null => false
|
||
|
end
|
||
|
end
|