* Created a new table inputs
* For each consumption of a profile was created an input to each product of the profile
* Removed consumptions table
(ActionItem1435)
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