added suppliers, weight to item

This commit is contained in:
Senad Uka
2015-03-14 06:33:49 +01:00
parent 0bafbb4b2f
commit e7793f0884
17 changed files with 304 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
class CreateSuppliers < ActiveRecord::Migration
def change
create_table :suppliers do |t|
t.string :name
t.string :address
t.string :postal_code
t.string :town
t.string :phone
t.string :contact_person
t.string :email
t.text :note
t.timestamps null: false
end
end
end

View File

@@ -0,0 +1,5 @@
class AddSupplierToItem < ActiveRecord::Migration
def change
add_column :items, :supplier_id, :integer
end
end