2017-08-30 23:06:56 -05:00
|
|
|
class AllowNullUserIdOnTopics < ActiveRecord::Migration[4.2]
|
2013-09-04 14:35:10 -05:00
|
|
|
def up
|
|
|
|
change_column :topics, :user_id, :integer, null: true
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
change_column :topics, :user_id, :integer, null: false
|
|
|
|
end
|
|
|
|
end
|