-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrations to create projection_assessment_runs and projection_assess…
…ments
- Loading branch information
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
db/migrate/20240313132008_create_projection_assessment_runs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class CreateProjectionAssessmentRuns < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :projection_assessment_runs do |t| | ||
t.references :event, null: false, foreign_key: true | ||
t.integer :completed_lap, null: false | ||
t.integer :completed_split_id, null: false | ||
t.integer :completed_bitkey, null: false | ||
t.integer :projected_lap, null: false | ||
t.integer :projected_split_id, null: false | ||
t.integer :projected_bitkey, null: false | ||
t.integer :status | ||
t.string :error_message | ||
t.integer :success_count | ||
t.integer :failure_count | ||
t.datetime :started_at | ||
t.integer :elapsed_time | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
14 changes: 14 additions & 0 deletions
14
db/migrate/20240313132913_create_projection_assessments.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class CreateProjectionAssessments < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :projection_assessments do |t| | ||
t.references :projection_assessment_run, null: false, foreign_key: true | ||
t.references :effort, null: false, foreign_key: true | ||
t.datetime :projected_early | ||
t.datetime :projected_best | ||
t.datetime :projected_late | ||
t.datetime :actual | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters