1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/db/migrate/20150520132030_create_prices.rb

13 lines
341 B
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
class CreatePrices < ActiveRecord::Migration
def change
create_table :prices do |t|
t.belongs_to :group, index: true, foreign_key: true
t.belongs_to :plan, index: true, foreign_key: true
t.belongs_to :priceable, polymorphic: true, index: true
t.integer :amount
t.timestamps null: false
end
end
end