Adopt model to reference GroupOrder in generated FinancialTransaction

This commit is contained in:
Patrick Gansterer 2019-11-04 04:33:43 +01:00
parent b6542fb711
commit 17059a8104
7 changed files with 17 additions and 5 deletions

View file

@ -0,0 +1,5 @@
class AddGroupOrderToFinancialTransaction < ActiveRecord::Migration
def change
add_reference :financial_transactions, :group_order
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: 20181201000200) do
ActiveRecord::Schema.define(version: 20181201000210) do
create_table "article_categories", force: :cascade do |t|
t.string "name", limit: 255, default: "", null: false
@ -137,6 +137,7 @@ ActiveRecord::Schema.define(version: 20181201000200) do
t.integer "financial_transaction_type_id", limit: 4, null: false
t.integer "financial_link_id", limit: 4
t.integer "reverts_id", limit: 4
t.integer "group_order_id"
end
add_index "financial_transactions", ["ordergroup_id"], name: "index_financial_transactions_on_ordergroup_id", using: :btree