Sha256: f1f7fe9d3b5972f70b5a25245716f4bf203c54b3a3f804350a7e80ec1c7b24fd

Contents?: true

Size: 381 Bytes

Versions: 6

Compression:

Stored size: 381 Bytes

Contents

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
      t.string :list
      t.timestamps
    end

    add_index :mailkick_opt_outs, :email
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mailkick-0.4.3 lib/generators/mailkick/templates/install.rb.tt
mailkick-0.4.2 lib/generators/mailkick/templates/install.rb.tt
mailkick-0.4.1 lib/generators/mailkick/templates/install.rb.tt
mailkick-0.4.0 lib/generators/mailkick/templates/install.rb.tt
mailkick-0.3.1 lib/generators/mailkick/templates/install.rb
mailkick-0.3.0 lib/generators/mailkick/templates/install.rb