cirandas.net

ref: master

db/migrate/20100719142230_create_inputs.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class CreateInputs < ActiveRecord::Migration
  def self.up
    create_table :inputs do |t|
      t.references :product, :null => false
      t.references :product_category, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :inputs
  end
end