added brands
This commit is contained in:
9
front-api/db/migrate/20150328132019_create_brands.rb
Normal file
9
front-api/db/migrate/20150328132019_create_brands.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreateBrands < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :brands do |t|
|
||||
t.string :name
|
||||
end
|
||||
|
||||
add_column :items, :brand_id, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user