negos_app/db/migrate/20151209125427_create_offers.rb

13 lines
255 B
Ruby

class CreateOffers < ActiveRecord::Migration
def change
create_table :offers do |t|
t.timestamps null: false
t.float :price
t.float :fee_percentage
t.references :needs, index: true
t.string :supplier
end
end
end