lib/generators/mailkick/templates/install.rb.tt in mailkick-0.4.3 vs lib/generators/mailkick/templates/install.rb.tt in mailkick-1.0.0

- old
+ new

@@ -1,14 +1,11 @@ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> 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 + create_table :mailkick_subscriptions do |t| + t.references :subscriber, polymorphic: true, index: false t.string :list t.timestamps end - add_index :mailkick_opt_outs, :email + add_index :mailkick_subscriptions, [:subscriber_type, :subscriber_id, :list], unique: true, name: "index_mailkick_subscriptions_on_subscriber_and_list" end end