discourse/db/migrate/20121122033316_add_muted_at_to_topic_user.rb

8 lines
277 B
Ruby
Raw Normal View History

class AddMutedAtToTopicUser < ActiveRecord::Migration[4.2]
2013-02-05 13:16:51 -06:00
def change
add_column :topic_users, :muted_at, :datetime
change_column :topic_users, :last_read_post_number, :integer, null: true
2013-02-05 13:16:51 -06:00
change_column_default :topic_users, :last_read_post_number, nil
end
end