You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
347 B

  1. class CreateKeywordMutes < ActiveRecord::Migration[5.1]
  2. def change
  3. create_table :keyword_mutes do |t|
  4. t.references :account, null: false
  5. t.string :keyword, null: false
  6. t.boolean :whole_word, null: false, default: true
  7. t.timestamps
  8. end
  9. add_foreign_key :keyword_mutes, :accounts, on_delete: :cascade
  10. end
  11. end