018_create_consumptions.rb 256 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 class CreateConsumptions < ActiveRecord::Migration def self.up create_table :consumptions do |t| t.column :product_category_id, :integer t.column :profile_id, :integer end end def self.down drop_table :consumptions end end