Skip to content

Instantly share code, notes, and snippets.

@codepedia
Last active January 24, 2019 16:49
Show Gist options
  • Save codepedia/15298e7852404cab11ca801978ca8d82 to your computer and use it in GitHub Desktop.
Save codepedia/15298e7852404cab11ca801978ca8d82 to your computer and use it in GitHub Desktop.
$ cat $_
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20181023171133) do
create_table "accruals", force: :cascade do |t|
t.integer "year"
t.decimal "Jan", default: "0.0"
t.decimal "Feb", default: "0.0"
t.decimal "Mar", default: "0.0"
t.decimal "Apr", default: "0.0"
t.decimal "May", default: "0.0"
t.decimal "June", default: "0.0"
t.decimal "July", default: "0.0"
t.decimal "Aug", default: "0.0"
t.decimal "Sep", default: "0.0"
t.decimal "Oct", default: "0.0"
t.decimal "Nov", default: "0.0"
t.decimal "Dec", default: "0.0"
t.decimal "ANNUAL", default: "0.0"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "ProjectContractInfo_id"
t.index ["ProjectContractInfo_id"], name: "index_accruals_on_ProjectContractInfo_id"
end
create_table "contracts", force: :cascade do |t|
t.integer "vendor_id"
t.integer "team_id"
t.string "status"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["team_id"], name: "index_contracts_on_team_id"
t.index ["vendor_id"], name: "index_contracts_on_vendor_id"
end
create_table "project_contract_infos", force: :cascade do |t|
t.integer "contract_id"
t.integer "project_id"
t.date "contract_start_date"
t.date "contract_end_date"
t.string "payment_period"
t.date "due_date"
t.string "account_info"
t.string "desc"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["contract_id"], name: "index_project_contract_infos_on_contract_id"
t.index ["project_id"], name: "index_project_contract_infos_on_project_id"
end
create_table "projects", force: :cascade do |t|
t.string "name"
t.string "activity"
t.integer "company"
t.integer "account"
t.integer "cost_center"
t.integer "ic"
t.integer "product"
t.integer "dist"
t.integer "project_number"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "teams", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "vendors", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment