Sha256: bb81db0235d76a4d2cfe3e2a68774771b034bc39692bc838647a1d8bfa9f22f4

Contents?: true

Size: 421 Bytes

Versions: 11

Compression:

Stored size: 421 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :mailkick_opt_outs do |t|
      t.string :email
      t.integer :user_id
      t.string :user_type
      t.boolean :active, null: false, default: true
      t.string :reason
      t.string :list
      t.timestamps
    end

    add_index :mailkick_opt_outs, :email
    add_index :mailkick_opt_outs, [:user_id, :user_type]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mailkick-0.1.6 lib/generators/mailkick/templates/install.rb
mailkick-0.1.5 lib/generators/mailkick/templates/install.rb
mailkick-0.1.4 lib/generators/mailkick/templates/install.rb
mailkick-0.1.3 lib/generators/mailkick/templates/install.rb
mailkick-0.1.2 lib/generators/mailkick/templates/install.rb
mailkick-0.1.1 lib/generators/mailkick/templates/install.rb
mailkick-0.1.0 lib/generators/mailkick/templates/install.rb
mailkick-0.0.6 lib/generators/mailkick/templates/install.rb
mailkick-0.0.5 lib/generators/mailkick/templates/install.rb
mailkick-0.0.4 lib/generators/mailkick/templates/install.rb
mailkick-0.0.3 lib/generators/mailkick/templates/install.rb