tap/db/migrate/20150919091214_add_barcode_to_products.rb
2015-09-23 11:09:24 +02:00

11 lines
226 B
Ruby

class AddBarcodeToProducts < ActiveRecord::Migration
def change
create_table :barcodes do |t|
t.references :product
t.string :code, index: true, null: false, default: ""
t.timestamps
end
end
end