Sha256: cc9215f4f2269004c74965c85ac75ef05ba2c4156368d810acc0646e3de1871c

Contents?: true

Size: 509 Bytes

Versions: 7

Compression:

Stored size: 509 Bytes

Contents

class CreateRecipients < ActiveRecord::Migration
  def self.up
    create_table :recipients do |t|
      t.string :email
      t.boolean :bounced, :default => false
      t.boolean :read, :default => false
      t.boolean :reacted, :default => false
      t.integer :sent_mailing_id
      t.integer :contact_id
      t.string :message_id
      t.datetime :read_at
      t.datetime :bounced_at
      t.datetime :reacted_at
      t.timestamps
    end
  end

  def self.down
    drop_table :recipients
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.0.4.1 db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.1.0a db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.0.3 db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.0.2 db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.0.1 db/migrate/20100708221529_create_recipients.rb
alchemy_crm-2.0.0 db/migrate/20100708221529_create_recipients.rb