Sha256: 494cc551b3ed86dada5e48585bbeb6fdea8d384ec407fe53cdf5457f9e2d24b9
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 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.timestamps end add_index :mailkick_opt_outs, :email add_index :mailkick_opt_outs, [:user_id, :user_type] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.0.2 | lib/generators/mailkick/templates/install.rb |
mailkick-0.0.1 | lib/generators/mailkick/templates/install.rb |