added price per unit to item details page

This commit is contained in:
Senad Uka
2015-01-30 07:19:28 +01:00
parent b8caf1a8a7
commit 35cc279527
70 changed files with 12644 additions and 17 deletions

View File

@@ -0,0 +1,5 @@
class AddDescriptionSuffixToUnit < ActiveRecord::Migration
def change
add_column :units, :description_suffix, :string
end
end

View File

@@ -0,0 +1,5 @@
class AddNumberOfPiecesSuffixToUnit < ActiveRecord::Migration
def change
add_column :units, :number_of_pieces_suffix, :string
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150118082022) do
ActiveRecord::Schema.define(version: 20150130041842) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -62,7 +62,9 @@ ActiveRecord::Schema.define(version: 20150118082022) do
create_table "units", force: :cascade do |t|
t.string "name"
t.string "short_name", limit: 4
t.string "short_name", limit: 4
t.string "description_suffix"
t.string "number_of_pieces_suffix"
end
end