discourse/db/migrate/20121122033316_add_muted_at_to_topic_user.rb
Sam Saffron 30990006a9 DEV: enable frozen string literal on all files
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.

Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00

10 lines
308 B
Ruby

# frozen_string_literal: true
class AddMutedAtToTopicUser < ActiveRecord::Migration[4.2]
def change
add_column :topic_users, :muted_at, :datetime
change_column :topic_users, :last_read_post_number, :integer, null: true
change_column_default :topic_users, :last_read_post_number, nil
end
end