Sha256: 1e9dd600f2f696c882f9c16b4cac2284f62b81200af9613990f7613f04ddf818

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
      t.string :from, :to
      t.integer :priority, :default => 100
      t.integer :last_send_attempt, :default => 0
      t.text :mail
      t.timestamps
    end
  end

  def self.down
    drop_table :<%= table_name %>
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paulnicholson-ar_mailer-2.1.5 generators/ar_mailer/templates/migration.rb