Sha256: 70e5afc05fa65ce8b6af55bc23940b6fbb937f94dce0b7db891835433884a395

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
prioritized_ar_mailer-2.1.11 generators/ar_mailer/templates/migration.rb
gsoni-ar_mailer-2.1.11 generators/ar_mailer/templates/migration.rb
gsoni-ar_mailer-2.1.10 generators/ar_mailer/templates/migration.rb
gsoni-ar_mailer-2.1.9 generators/ar_mailer/templates/migration.rb