added ribica rake task (item import, copying sections to menu etc.)

This commit is contained in:
Edin Dazdarevic
2015-04-07 00:29:14 +02:00
parent 76d5fd7599
commit 5464ec5770
5 changed files with 331 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
class ChangeCodeColumnOnItemsTable < ActiveRecord::Migration
def change
change_column :items, :code, :string, limit: 30
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: 20150328132019) do
ActiveRecord::Schema.define(version: 20150404114006) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -113,7 +113,7 @@ ActiveRecord::Schema.define(version: 20150328132019) do
create_table "items", force: :cascade do |t|
t.string "name"
t.string "code", limit: 10
t.string "code", limit: 30
t.decimal "current_input_price", precision: 5, scale: 2
t.decimal "list_price", precision: 5, scale: 2
t.integer "unit_id"