20181018205649_add_unread_to_account_conversations.rb 392 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. class AddUnreadToAccountConversations < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column(
  7. :account_conversations,
  8. :unread,
  9. :boolean,
  10. null: false,
  11. default: false
  12. )
  13. end
  14. end
  15. def down
  16. remove_column :account_conversations, :unread, :boolean
  17. end
  18. end