Sha256: eaa2c7c507032c806b48b958a8c391d3da831293bfa9a006ce3b33fe6e971f95

Contents?: true

Size: 516 Bytes

Versions: 8

Compression:

Stored size: 516 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.boolean :available, :default => false

      t.timestamps
    end
  end

  def self.down
    drop_table :mail_schedules
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mail_engine-0.1.11 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.10 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.9 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.8 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.7 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.6 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.5 db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.4 db/migrate/20110126030525_create_mail_schedules.rb