Sha256: f4a22a2ad1e7815b60868ea518e4b1952d9b3d742ef407c8ebb4ea05590306c1

Contents?: true

Size: 424 Bytes

Versions: 10

Compression:

Stored size: 424 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :mailkick_subscriptions do |t|
      t.references :subscriber, polymorphic: true, index: false
      t.string :list
      t.timestamps
    end

    add_index :mailkick_subscriptions, [:subscriber_type, :subscriber_id, :list], unique: true, name: "index_mailkick_subscriptions_on_subscriber_and_list"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mailkick-1.3.1 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.3.0 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.2.2 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.2.1 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.2.0 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.1.2 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.1.1 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.1.0 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.0.1 lib/generators/mailkick/templates/install.rb.tt
mailkick-1.0.0 lib/generators/mailkick/templates/install.rb.tt