diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-10-25 17:37:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 17:37:48 -0400 |
commit | a2612d0d3865fbbd6e8a93572f6d4e4044a8d64b (patch) | |
tree | 464822f052ca346fc38ad70eb8e3d96dbc363790 /db/migrate/20171009222537_create_keyword_mutes.rb | |
parent | 31814ddda009939d5d2ebe3e0ac061c26387529a (diff) | |
parent | e40fe4092dfd927dd4b6605b7b398fcd0984d903 (diff) |
Merge pull request #179 from glitch-soc/keyword-mute
Keyword muting
Diffstat (limited to 'db/migrate/20171009222537_create_keyword_mutes.rb')
-rw-r--r-- | db/migrate/20171009222537_create_keyword_mutes.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20171009222537_create_keyword_mutes.rb b/db/migrate/20171009222537_create_keyword_mutes.rb new file mode 100644 index 000000000..ec0c756fb --- /dev/null +++ b/db/migrate/20171009222537_create_keyword_mutes.rb @@ -0,0 +1,12 @@ +class CreateKeywordMutes < ActiveRecord::Migration[5.1] + def change + create_table :keyword_mutes do |t| + t.references :account, null: false + t.string :keyword, null: false + t.boolean :whole_word, null: false, default: true + t.timestamps + end + + add_foreign_key :keyword_mutes, :accounts, on_delete: :cascade + end +end |