added price per unit to item details page
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddDescriptionSuffixToUnit < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :units, :description_suffix, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddNumberOfPiecesSuffixToUnit < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :units, :number_of_pieces_suffix, :string
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user