cirandas.net

ref: master

db/migrate/20100902202247_create_mailings.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class CreateMailings < ActiveRecord::Migration
  def self.up
    create_table :mailings do |t|
      t.string :type
      t.string :subject
      t.text :body
      t.integer :source_id
      t.string :source_type
      t.references :person
      t.string :locale
      t.timestamps
    end
  end

  def self.down
    drop_table :mailings
  end
end