cirandas.net

ref: master

db/migrate/018_create_consumptions.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class CreateConsumptions < ActiveRecord::Migration
  def self.up
    create_table :consumptions do |t|
      t.column :product_category_id,     :integer
      t.column :profile_id,              :integer

      t.column :aditional_specifications, :text
    end
  end

  def self.down
    drop_table :consumptions
  end
end