added suppliers, weight to item
This commit is contained in:
16
back-office/db/migrate/20150314033113_create_suppliers.rb
Normal file
16
back-office/db/migrate/20150314033113_create_suppliers.rb
Normal 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
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddSupplierToItem < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :items, :supplier_id, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user