Add tax_references, its controller and some basic pages for viewing ref data about taxes.

This commit is contained in:
2020-09-10 12:36:43 +01:00
parent 49d17e5850
commit 83ba256f9d
15 changed files with 142 additions and 4 deletions
@@ -0,0 +1,13 @@
class CreateTaxReferences < ActiveRecord::Migration[6.0]
def change
create_table :tax_references do |t|
t.integer :year
t.float :hourly_wage
t.integer :min_monthly_hours
t.float :worker_percentage
t.float :employer_percentage
t.timestamps
end
end
end
+11 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_08_19_085432) do
ActiveRecord::Schema.define(version: 2020_09_09_112404) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -41,6 +41,16 @@ ActiveRecord::Schema.define(version: 2020_08_19_085432) do
t.index ["unlock_token"], name: "index_admins_on_unlock_token", unique: true
end
create_table "tax_references", force: :cascade do |t|
t.integer "year"
t.float "hourly_wage"
t.integer "min_monthly_hours"
t.float "worker_percentage"
t.float "employer_percentage"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
end
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false