Skip to content

Commit

Permalink
Create recruitment cycle timetables table
Browse files Browse the repository at this point in the history
  • Loading branch information
elceebee committed Jan 30, 2025
1 parent 39f7dfb commit 2e3cb0b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
18 changes: 18 additions & 0 deletions db/migrate/20250127161433_create_recruitment_cycle_timetable.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class CreateRecruitmentCycleTimetable < ActiveRecord::Migration[8.0]
def change
create_table :recruitment_cycle_timetables do |t|
t.string :type
t.datetime :find_opens
t.datetime :apply_opens
t.datetime :apply_deadline
t.datetime :reject_by_default
t.datetime :decline_by_default
t.datetime :find_closes
t.daterange :christmas_holiday
t.daterange :easter_holiday
t.integer :recruitment_cycle_year

t.timestamps
end
end
end
17 changes: 16 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[8.0].define(version: 2025_01_23_164914) do
ActiveRecord::Schema[8.0].define(version: 2025_01_27_161433) do
create_sequence "qualifications_public_id_seq", start: 120000

# These are extensions that must be enabled in order to support this database
Expand Down Expand Up @@ -750,6 +750,21 @@
t.index ["vendor_id"], name: "index_providers_on_vendor_id"
end

create_table "recruitment_cycle_timetables", force: :cascade do |t|
t.string "type"
t.datetime "find_opens"
t.datetime "apply_opens"
t.datetime "apply_deadline"
t.datetime "reject_by_default"
t.datetime "decline_by_default"
t.datetime "find_closes"
t.daterange "christmas_holiday"
t.daterange "easter_holiday"
t.integer "recruitment_cycle_year"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "reference_tokens", force: :cascade do |t|
t.bigint "application_reference_id", null: false
t.string "hashed_token", null: false
Expand Down
Binary file modified docs/domain-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2e3cb0b

Please sign in to comment.