15 lines
350 B
Ruby
15 lines
350 B
Ruby
|
|
class InstallMailkick < ActiveRecord::Migration[5.2]
|
||
|
|
def change
|
||
|
|
create_table :mailkick_opt_outs do |t|
|
||
|
|
t.string :email
|
||
|
|
t.references :user, polymorphic: true
|
||
|
|
t.boolean :active, null: false, default: true
|
||
|
|
t.string :reason
|
||
|
|
t.string :list
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
|
||
|
|
add_index :mailkick_opt_outs, :email
|
||
|
|
end
|
||
|
|
end
|