Sha256: 757a24e0051adcf0fcbe0ed0cde3848980ac017dd10c052f9654b19ddaf6650f

Contents?: true

Size: 470 Bytes

Versions: 10

Compression:

Stored size: 470 Bytes

Contents

class CreateMailSchedules < ActiveRecord::Migration
  def self.up
    create_table :mail_schedules do |t|
      t.string :name
      t.integer :mail_template_id
      t.string :user_group
      t.integer :count, :default => 0
      t.integer :sent_count, :default => 0
      t.string :period
      t.string :payload
      t.datetime :first_send_at
      t.datetime :last_sent_at

      t.timestamps
    end
  end

  def self.down
    drop_table :mail_schedules
  end
end

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
mail_engine-0.1.3 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.3 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.2 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.2 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.1 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.1 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.0 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.0 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.0.1 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.0.1 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb