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