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