Sha256: 3ca759b9cb4695099a37d1e53b6e35e857730c60665fd1c319fa01a8d0d17eb3

Contents?: true

Size: 303 Bytes

Versions: 11

Compression:

Stored size: 303 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :ahoy_clicks do |t|
      t.string :campaign, index: true
      t.string :token
    end

    add_column :ahoy_messages, :campaign, :string
    add_index :ahoy_messages, :campaign
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ahoy_email-2.4.0 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.3.1 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.3.0 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.2.0 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.1.3 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.1.2 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.1.1 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.1.0 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.0.3 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.0.2 lib/generators/ahoy/clicks/templates/migration.rb.tt
ahoy_email-2.0.1 lib/generators/ahoy/clicks/templates/migration.rb.tt