mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-21 18:15:42 +09:00
14 lines
412 B
Ruby
14 lines
412 B
Ruby
|
class CreateCustomFilters < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :custom_filters do |t|
|
||
|
t.belongs_to :account, foreign_key: { on_delete: :cascade }
|
||
|
t.datetime :expires_at
|
||
|
t.text :phrase, null: false, default: ''
|
||
|
t.string :context, array: true, null: false, default: []
|
||
|
t.boolean :irreversible, null: false, default: false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|