fedibird-fe/db/migrate/20190903113117_create_keyword_subscribes.rb

13 lines
342 B
Ruby
Raw Permalink Normal View History

2019-08-30 08:02:41 +00:00
class CreateKeywordSubscribes < ActiveRecord::Migration[5.2]
def change
create_table :keyword_subscribes do |t|
t.references :account, foreign_key: { on_delete: :cascade }
t.string :keyword, null: false
t.boolean :ignorecase, default: true
t.boolean :regexp, default: false
t.timestamps
end
end
end