paiements precision
This commit is contained in:
parent
14b7d607a5
commit
cbcf5a6403
@ -0,0 +1,6 @@
|
|||||||
|
class ChangeNumericFieldInPSheetLines < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :p_payments, :amount, :decimal, :precision => 12, :scale => 2
|
||||||
|
change_column :p_payment_documents, :amount, :decimal, :precision => 12, :scale => 2
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20190128223146) do
|
ActiveRecord::Schema.define(version: 20190203134413) do
|
||||||
|
|
||||||
create_table "admin_admin_roles", force: :cascade do |t|
|
create_table "admin_admin_roles", force: :cascade do |t|
|
||||||
t.integer "admin_id", limit: 4
|
t.integer "admin_id", limit: 4
|
||||||
@ -964,7 +964,7 @@ ActiveRecord::Schema.define(version: 20190128223146) do
|
|||||||
create_table "p_payment_documents", force: :cascade do |t|
|
create_table "p_payment_documents", force: :cascade do |t|
|
||||||
t.integer "p_payment_id", limit: 4
|
t.integer "p_payment_id", limit: 4
|
||||||
t.integer "p_document_id", limit: 4
|
t.integer "p_document_id", limit: 4
|
||||||
t.decimal "amount", precision: 14, scale: 4
|
t.decimal "amount", precision: 12, scale: 2
|
||||||
t.boolean "paid", default: false
|
t.boolean "paid", default: false
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
@ -983,7 +983,7 @@ ActiveRecord::Schema.define(version: 20190128223146) do
|
|||||||
t.datetime "paid_at"
|
t.datetime "paid_at"
|
||||||
t.datetime "theo_date"
|
t.datetime "theo_date"
|
||||||
t.integer "p_payment_type_id", limit: 4
|
t.integer "p_payment_type_id", limit: 4
|
||||||
t.decimal "amount", precision: 10
|
t.decimal "amount", precision: 12, scale: 2
|
||||||
t.string "number", limit: 255
|
t.string "number", limit: 255
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user