Files
old-ribica/front-api/db/migrate/20150328132019_create_brands.rb
Edin Dazdarevic 71fbde93de added brands
2015-03-28 14:38:15 +01:00

10 lines
184 B
Ruby

class CreateBrands < ActiveRecord::Migration
def change
create_table :brands do |t|
t.string :name
end
add_column :items, :brand_id, :integer
end
end