10 lines
184 B
Ruby
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
|