blob: b8b5c130681a5994623654fab3196433bcaa4792 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
class AddReplyToStatuses < ActiveRecord::Migration[5.0]
def up
add_column :statuses, :reply, :boolean, nil: false, default: false
Status.unscoped.update_all('reply = (in_reply_to_id IS NOT NULL)')
end
def down
remove_column :statuses, :reply
end
end
|