Sha256: 6c50a1625d36f84b460634f1e3f2c0c744ccc57a61d63c32a11dc87a36c84184

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 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

      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 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.10 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.9 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.8 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.7 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.6 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.5 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb
mail_engine-0.1.4 test/dummy/db/migrate/20110126030525_create_mail_schedules.rb