Sha256: 9ee286a3c0df84a235d9fc56fd8cb2821bd423f9bf18b1cea084ce811d0c243e
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
class CreateMailRotatorMailerStores < ActiveRecord::Migration def change create_table table_name do |t| t.string :name, null: false t.integer :limit, null: false, default: 1 t.integer :sent_count, null: false, default: 0 t.boolean :active, default: false t.timestamps null: false end add_index table_name, :name, unique: true end private def table_name MailRotator::MailerStore.table_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail_rotator-0.1.0 | samples/migration.rb.sample |