Sha256: 4518114eebb7bb6851518b5da932cb52ed3d47000dbe87a0d1239a095f2cf34e
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
class <%= migration_class_name.gsub(/::/, '') %> < 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
prioritized_ar_mailer_rails3-2.1.12 | lib/generators/ar_mailer_rails3/templates/migration.rb |
gsoni-ar_mailer_rails3-2.1.12 | lib/generators/ar_mailer_rails3/templates/migration.rb |