cirandas.net

ref: master

db/migrate/20110403184315_create_production_cost.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class CreateProductionCost < ActiveRecord::Migration
  def self.up
    create_table :production_costs do |t|
      t.string :name
      t.references :owner, :polymorphic => true
      t.timestamps
    end
  end

  def self.down
    drop_table :production_costs
  end
end