Sha256: 8ed2427481eef7cb48ec7b4d60d72bfb4f8bfb5380e24291a749cde1b9deab4b

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

class CreateEmailTable < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
      t.text :tmail
      t.string :mailer_method
      t.integer :attempts, :default => 0
      t.datetime :last_attempt_at
      
      t.timestamps
    end
  end

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mdarby-mq-0.1.1 generators/mq/templates/create_email_table.rb
mdarby-mq-0.1.2 generators/mq/templates/create_email_table.rb
mdarby-mq-0.1 generators/mq/templates/create_email_table.rb
mq-0.1.3 generators/mq/templates/create_email_table.rb
mq-0.1.2 generators/mq/templates/create_email_table.rb