Add short name to FinancialTransactionType
This commit is contained in:
parent
707501e3f8
commit
0bb0536903
6 changed files with 14 additions and 1 deletions
|
|
@ -0,0 +1,6 @@
|
|||
class AddNameShortToFinancialTransactionType < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :financial_transaction_types, :name_short, :string
|
||||
add_index :financial_transaction_types, :name_short
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171111000000) do
|
||||
ActiveRecord::Schema.define(version: 20171201000000) do
|
||||
|
||||
create_table "article_categories", force: :cascade do |t|
|
||||
t.string "name", limit: 255, default: "", null: false
|
||||
|
|
@ -123,8 +123,11 @@ ActiveRecord::Schema.define(version: 20171111000000) do
|
|||
create_table "financial_transaction_types", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.integer "financial_transaction_class_id", null: false
|
||||
t.string "name_short"
|
||||
end
|
||||
|
||||
add_index "financial_transaction_types", ["name_short"], name: "index_financial_transaction_types_on_name_short", using: :btree
|
||||
|
||||
create_table "financial_transactions", force: :cascade do |t|
|
||||
t.integer "ordergroup_id", limit: 4, default: 0, null: false
|
||||
t.decimal "amount", precision: 8, scale: 2, default: 0, null: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue