-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert migration and content update (#1285)
* Revert "Revert "ER-1271 Delete old user_answers and user_assessments tables (#1267)" (#1284)" This reverts commit f265902. * My Account update and feedback controller spec update * Ensure fallback to guest is always possible web crawlers or curl requests do not instantiate new visit records * Update lying spec! --------- Co-authored-by: Peter David Hamilton <[email protected]>
- Loading branch information
1 parent
3b3be30
commit 65f0c3f
Showing
15 changed files
with
123 additions
and
125 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,23 @@ | ||
class DropUserAnswersTable < ActiveRecord::Migration[7.1] | ||
def up | ||
drop_table :user_answers | ||
end | ||
|
||
def down | ||
create_table :user_answers do |t| | ||
t.references :user, null: false, foreign_key: true | ||
t.integer :questionnaire_id, null: false, index: true | ||
t.string :question | ||
t.string :answer | ||
t.boolean :correct | ||
t.boolean :archived | ||
t.index %i[questionnaire_id user_id] | ||
t.timestamps | ||
t.string :module | ||
t.string :name | ||
t.string :assessments_type | ||
t.references :user_assessment, null: true, foreign_key: true | ||
t.string :state | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class DropUserAssessmentsTable < ActiveRecord::Migration[7.1] | ||
def up | ||
drop_table :user_assessments | ||
end | ||
|
||
def down | ||
create_table :user_assessments do |t| | ||
t.references :user, null: false, foreign_key: true | ||
t.string :score | ||
t.string :status | ||
t.string :module | ||
t.string :assessments_type | ||
t.boolean :archived | ||
t.datetime :completed | ||
t.index %i[score status] | ||
t.timestamps | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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