From 44dc18feb0fcdaf90c2953d285526eb4776c3191 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 22 Nov 2018 19:05:19 +0100 Subject: [PATCH] Add version identifier to old migrations (required for Rails 5) --- db/migrate/20140625134118_create_exercises.rb | 2 +- db/migrate/20140626143132_create_execution_environments.rb | 2 +- db/migrate/20140626144036_create_submissions.rb | 2 +- .../20140630093736_add_reference_implementation_to_exercises.rb | 2 +- .../20140630111215_add_indent_size_to_execution_environments.rb | 2 +- db/migrate/20140701120126_create_consumers.rb | 2 +- db/migrate/20140701122345_create_users.rb | 2 +- db/migrate/20140702100130_add_oauth_key_to_consumers.rb | 2 +- db/migrate/20140703070749_add_oauth_secret_to_consumers.rb | 2 +- db/migrate/20140716153147_add_role_to_users.rb | 2 +- db/migrate/20140717074902_add_user_id_to_exercises.rb | 2 +- .../20140722125431_add_run_command_to_execution_environments.rb | 2 +- ...20140723135530_add_test_command_to_execution_environments.rb | 2 +- db/migrate/20140723135747_add_test_code_to_exercises.rb | 2 +- db/migrate/20140724155359_add_cause_to_submissions.rb | 2 +- .../20140730114343_add_template_test_code_to_exercises.rb | 2 +- ...140730115010_add_supports_user_defined_tests_to_exercises.rb | 2 +- ...805161431_add_testing_framework_to_execution_environments.rb | 2 +- db/migrate/20140812102114_create_file_types.rb | 2 +- db/migrate/20140812144733_create_files.rb | 2 +- ...ove_file_type_related_columns_from_execution_environments.rb | 2 +- ...20140812150925_remove_file_related_columns_from_exercises.rb | 2 +- db/migrate/20140813091722_remove_code_from_submissions.rb | 2 +- db/migrate/20140820170039_add_instructions_to_exercises.rb | 2 +- db/migrate/20140821064318_add_published_to_exercises.rb | 2 +- db/migrate/20140823172643_add_executable_to_file_types.rb | 2 +- db/migrate/20140823173923_add_renderable_to_file_types.rb | 2 +- db/migrate/20140825121336_create_external_users.rb | 2 +- db/migrate/20140825125801_create_internal_users.rb | 2 +- db/migrate/20140825154202_drop_users.rb | 2 +- db/migrate/20140825161350_add_user_type_to_exercises.rb | 2 +- db/migrate/20140825161358_add_user_type_to_file_types.rb | 2 +- db/migrate/20140825161406_add_user_type_to_submissions.rb | 2 +- db/migrate/20140826073318_sorcery_core.rb | 2 +- db/migrate/20140826073319_sorcery_brute_force_protection.rb | 2 +- db/migrate/20140826073320_sorcery_remember_me.rb | 2 +- db/migrate/20140826073321_sorcery_reset_password.rb | 2 +- db/migrate/20140826073322_sorcery_user_activation.rb | 2 +- db/migrate/20140827065359_add_binary_to_file_types.rb | 2 +- db/migrate/20140827083957_add_native_file_to_files.rb | 2 +- db/migrate/20140829141913_create_hints.rb | 2 +- ...903093436_remove_not_null_constraints_from_internal_users.rb | 2 +- db/migrate/20140903165113_create_errors.rb | 2 +- db/migrate/20140904082810_add_token_to_exercises.rb | 2 +- db/migrate/20140909115430_add_file_id_to_exercises.rb | 2 +- db/migrate/20140915095420_add_role_to_files.rb | 2 +- db/migrate/20140915122846_remove_file_id_from_exercises.rb | 2 +- db/migrate/20140918063522_add_hashed_content_to_files.rb | 2 +- db/migrate/20140922161120_add_feedback_message_to_files.rb | 2 +- db/migrate/20140922161226_add_weight_to_files.rb | 2 +- db/migrate/20141003072729_add_help_to_execution_environments.rb | 2 +- ...0141004114747_add_exposed_ports_to_execution_environments.rb | 2 +- ...34_add_permitted_execution_time_to_execution_environments.rb | 2 +- ...45303_add_user_id_and_user_type_to_execution_environments.rb | 2 +- db/migrate/20141017110211_rename_published_to_public.rb | 2 +- db/migrate/20141031161603_add_path_to_files.rb | 2 +- db/migrate/20141119131607_create_comments.rb | 2 +- db/migrate/20150128083123_create_teams.rb | 2 +- db/migrate/20150128084834_create_internal_users_teams.rb | 2 +- db/migrate/20150128093003_add_team_id_to_exercises.rb | 2 +- .../20150204080832_add_pool_size_to_execution_environments.rb | 2 +- ...20150310150712_add_file_type_id_to_execution_environments.rb | 2 +- ...20150317083739_add_memory_limit_to_execution_environments.rb | 2 +- ...50317115338_add_network_enabled_to_execution_environments.rb | 2 +- db/migrate/20150327141740_create_request_for_comments.rb | 2 +- db/migrate/20150408155923_add_submission_to_error.rb | 2 +- db/migrate/20150421074734_add_file_index_to_files.rb | 2 +- .../20150818141554_add_user_type_to_request_for_comments.rb | 2 +- db/migrate/20150818142251_correct_column_names.rb | 2 +- ...20150903152727_remove_requestor_from_request_for_comments.rb | 2 +- db/migrate/20150922125415_add_hide_file_tree_to_exercises.rb | 2 +- db/migrate/20160204094409_create_code_harbor_links.rb | 2 +- db/migrate/20160204111716_add_user_to_code_harbor_link.rb | 2 +- db/migrate/20160302133540_create_testruns.rb | 2 +- .../20160426114951_add_question_to_request_for_comments.rb | 2 +- .../20160510145341_add_allow_file_creation_to_exercises.rb | 2 +- ...0512131539_change_comment_text_attribute_to_text_datatype.rb | 2 +- db/migrate/20160609185708_create_file_templates.rb | 2 +- db/migrate/20160610111602_add_file_template_to_file.rb | 2 +- db/migrate/20160624130951_add_solved_to_request_for_comments.rb | 2 +- .../20160630154310_add_submission_to_request_for_comments.rb | 2 +- ...60701092140_remove_requested_at_from_request_for_comments.rb | 2 +- db/migrate/20160704143402_remove_teams.rb | 2 +- .../20160907123009_add_allow_auto_completion_to_exercises.rb | 2 +- db/migrate/20170112151637_create_lti_parameters.rb | 2 +- db/migrate/20170202170437_create_remote_evaluation_mappings.rb | 2 +- db/migrate/20170205163247_create_exercise_collections.rb | 2 +- db/migrate/20170205165450_create_proxy_exercises.rb | 2 +- db/migrate/20170205210357_create_interventions.rb | 2 +- db/migrate/20170206141210_add_tags.rb | 2 +- db/migrate/20170206152503_add_user_feedback.rb | 2 +- db/migrate/20170228165741_add_search.rb | 2 +- ...20170321150454_add_reason_to_user_proxy_exercise_exercise.rb | 2 +- db/migrate/20170323130756_add_index_to_submissions.rb | 2 +- ...20170403162848_set_default_for_request_for_comment_solved.rb | 2 +- db/migrate/20170411090543_improve_user_feedback.rb | 2 +- ...20170608141612_add_thank_you_note_to_request_for_comments.rb | 2 +- db/migrate/20170703075832_create_error_templates.rb | 2 +- db/migrate/20170703075959_create_error_template_attributes.rb | 2 +- db/migrate/20170703080205_create_structured_errors.rb | 2 +- db/migrate/20170703080355_create_structured_error_attributes.rb | 2 +- ...20170711170456_add_description_and_hint_to_error_template.rb | 2 +- ...28_change_error_template_attribute_relationship_to_n_to_m.rb | 2 +- .../20170719133351_add_match_to_structured_error_attribute.rb | 2 +- db/migrate/20170830083601_add_cause_to_testruns.rb | 2 +- db/migrate/20170906124500_create_subscriptions.rb | 2 +- db/migrate/20170913054203_rename_subscription_type.rb | 2 +- db/migrate/20170920145852_add_deleted_to_subscription.rb | 2 +- db/migrate/20171002131135_remove_expected_working_time.rb | 2 +- ...5121125_add_anomaly_detection_flag_to_exercise_collection.rb | 2 +- .../20171120153705_add_timestamps_to_user_exercise_feedbacks.rb | 2 +- db/migrate/20171122124222_add_index_to_exercises.rb | 2 +- db/migrate/20171210172208_add_user_to_exercise_collection.rb | 2 +- .../20180130101645_add_submission_to_structured_errors.rb | 2 +- ...80130172021_add_reached_full_score_to_request_for_comment.rb | 2 +- ...20180202132034_add_times_featured_to_request_for_comments.rb | 2 +- db/migrate/20180222145909_fix_timestamps_on_feedback.rb | 2 +- db/migrate/20180226131340_create_anomaly_notifications.rb | 2 +- .../20180515110030_remove_file_id_from_structured_errors.rb | 2 +- db/migrate/20180703125302_create_exercise_collection_items.rb | 2 +- db/migrate/20180814145059_create_events.rb | 2 +- db/migrate/20180814154055_rename_events_type_to_category.rb | 2 +- db/migrate/20180815115351_remove_event_indices.rb | 2 +- .../20180823135317_add_index_for_testrun_submission_id.rb | 2 +- ...80904115948_add_index_for_lti_parameters_external_user_id.rb | 2 +- 125 files changed, 125 insertions(+), 125 deletions(-) diff --git a/db/migrate/20140625134118_create_exercises.rb b/db/migrate/20140625134118_create_exercises.rb index 448befa8..1395ecc3 100644 --- a/db/migrate/20140625134118_create_exercises.rb +++ b/db/migrate/20140625134118_create_exercises.rb @@ -1,4 +1,4 @@ -class CreateExercises < ActiveRecord::Migration +class CreateExercises < ActiveRecord::Migration[4.2] def change create_table :exercises do |t| t.text :description diff --git a/db/migrate/20140626143132_create_execution_environments.rb b/db/migrate/20140626143132_create_execution_environments.rb index d1499f6c..40c50d0b 100644 --- a/db/migrate/20140626143132_create_execution_environments.rb +++ b/db/migrate/20140626143132_create_execution_environments.rb @@ -1,4 +1,4 @@ -class CreateExecutionEnvironments < ActiveRecord::Migration +class CreateExecutionEnvironments < ActiveRecord::Migration[4.2] def change create_table :execution_environments do |t| t.string :docker_image diff --git a/db/migrate/20140626144036_create_submissions.rb b/db/migrate/20140626144036_create_submissions.rb index 8f232204..07242ed1 100644 --- a/db/migrate/20140626144036_create_submissions.rb +++ b/db/migrate/20140626144036_create_submissions.rb @@ -1,4 +1,4 @@ -class CreateSubmissions < ActiveRecord::Migration +class CreateSubmissions < ActiveRecord::Migration[4.2] def change create_table :submissions do |t| t.text :code diff --git a/db/migrate/20140630093736_add_reference_implementation_to_exercises.rb b/db/migrate/20140630093736_add_reference_implementation_to_exercises.rb index 33e5647a..d9a854e2 100644 --- a/db/migrate/20140630093736_add_reference_implementation_to_exercises.rb +++ b/db/migrate/20140630093736_add_reference_implementation_to_exercises.rb @@ -1,4 +1,4 @@ -class AddReferenceImplementationToExercises < ActiveRecord::Migration +class AddReferenceImplementationToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :reference_implementation, :text end diff --git a/db/migrate/20140630111215_add_indent_size_to_execution_environments.rb b/db/migrate/20140630111215_add_indent_size_to_execution_environments.rb index bcf0a6e5..6f2830a8 100644 --- a/db/migrate/20140630111215_add_indent_size_to_execution_environments.rb +++ b/db/migrate/20140630111215_add_indent_size_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddIndentSizeToExecutionEnvironments < ActiveRecord::Migration +class AddIndentSizeToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :indent_size, :integer end diff --git a/db/migrate/20140701120126_create_consumers.rb b/db/migrate/20140701120126_create_consumers.rb index f5ce039f..8efbc84e 100644 --- a/db/migrate/20140701120126_create_consumers.rb +++ b/db/migrate/20140701120126_create_consumers.rb @@ -1,4 +1,4 @@ -class CreateConsumers < ActiveRecord::Migration +class CreateConsumers < ActiveRecord::Migration[4.2] def change create_table :consumers do |t| t.string :name diff --git a/db/migrate/20140701122345_create_users.rb b/db/migrate/20140701122345_create_users.rb index bfec23fa..215e0ffb 100644 --- a/db/migrate/20140701122345_create_users.rb +++ b/db/migrate/20140701122345_create_users.rb @@ -1,4 +1,4 @@ -class CreateUsers < ActiveRecord::Migration +class CreateUsers < ActiveRecord::Migration[4.2] def change create_table :users do |t| t.belongs_to :consumer diff --git a/db/migrate/20140702100130_add_oauth_key_to_consumers.rb b/db/migrate/20140702100130_add_oauth_key_to_consumers.rb index 50c2cfa6..e52d914c 100644 --- a/db/migrate/20140702100130_add_oauth_key_to_consumers.rb +++ b/db/migrate/20140702100130_add_oauth_key_to_consumers.rb @@ -1,4 +1,4 @@ -class AddOauthKeyToConsumers < ActiveRecord::Migration +class AddOauthKeyToConsumers < ActiveRecord::Migration[4.2] def change add_column :consumers, :oauth_key, :string end diff --git a/db/migrate/20140703070749_add_oauth_secret_to_consumers.rb b/db/migrate/20140703070749_add_oauth_secret_to_consumers.rb index 292b1063..61825748 100644 --- a/db/migrate/20140703070749_add_oauth_secret_to_consumers.rb +++ b/db/migrate/20140703070749_add_oauth_secret_to_consumers.rb @@ -1,4 +1,4 @@ -class AddOauthSecretToConsumers < ActiveRecord::Migration +class AddOauthSecretToConsumers < ActiveRecord::Migration[4.2] def change add_column :consumers, :oauth_secret, :string end diff --git a/db/migrate/20140716153147_add_role_to_users.rb b/db/migrate/20140716153147_add_role_to_users.rb index bac1e489..35228ab0 100644 --- a/db/migrate/20140716153147_add_role_to_users.rb +++ b/db/migrate/20140716153147_add_role_to_users.rb @@ -1,4 +1,4 @@ -class AddRoleToUsers < ActiveRecord::Migration +class AddRoleToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :role, :string end diff --git a/db/migrate/20140717074902_add_user_id_to_exercises.rb b/db/migrate/20140717074902_add_user_id_to_exercises.rb index 6a4d9a76..55c75391 100644 --- a/db/migrate/20140717074902_add_user_id_to_exercises.rb +++ b/db/migrate/20140717074902_add_user_id_to_exercises.rb @@ -1,4 +1,4 @@ -class AddUserIdToExercises < ActiveRecord::Migration +class AddUserIdToExercises < ActiveRecord::Migration[4.2] def change add_reference :exercises, :user end diff --git a/db/migrate/20140722125431_add_run_command_to_execution_environments.rb b/db/migrate/20140722125431_add_run_command_to_execution_environments.rb index 391fd253..de7e0f21 100644 --- a/db/migrate/20140722125431_add_run_command_to_execution_environments.rb +++ b/db/migrate/20140722125431_add_run_command_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddRunCommandToExecutionEnvironments < ActiveRecord::Migration +class AddRunCommandToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :run_command, :string end diff --git a/db/migrate/20140723135530_add_test_command_to_execution_environments.rb b/db/migrate/20140723135530_add_test_command_to_execution_environments.rb index 9e766108..fefc57eb 100644 --- a/db/migrate/20140723135530_add_test_command_to_execution_environments.rb +++ b/db/migrate/20140723135530_add_test_command_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddTestCommandToExecutionEnvironments < ActiveRecord::Migration +class AddTestCommandToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :test_command, :string end diff --git a/db/migrate/20140723135747_add_test_code_to_exercises.rb b/db/migrate/20140723135747_add_test_code_to_exercises.rb index da5e1031..8f184f37 100644 --- a/db/migrate/20140723135747_add_test_code_to_exercises.rb +++ b/db/migrate/20140723135747_add_test_code_to_exercises.rb @@ -1,4 +1,4 @@ -class AddTestCodeToExercises < ActiveRecord::Migration +class AddTestCodeToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :test_code, :text end diff --git a/db/migrate/20140724155359_add_cause_to_submissions.rb b/db/migrate/20140724155359_add_cause_to_submissions.rb index b5bddcad..37b273ca 100644 --- a/db/migrate/20140724155359_add_cause_to_submissions.rb +++ b/db/migrate/20140724155359_add_cause_to_submissions.rb @@ -1,4 +1,4 @@ -class AddCauseToSubmissions < ActiveRecord::Migration +class AddCauseToSubmissions < ActiveRecord::Migration[4.2] def change add_column :submissions, :cause, :string end diff --git a/db/migrate/20140730114343_add_template_test_code_to_exercises.rb b/db/migrate/20140730114343_add_template_test_code_to_exercises.rb index 5490715c..a0575cbf 100644 --- a/db/migrate/20140730114343_add_template_test_code_to_exercises.rb +++ b/db/migrate/20140730114343_add_template_test_code_to_exercises.rb @@ -1,4 +1,4 @@ -class AddTemplateTestCodeToExercises < ActiveRecord::Migration +class AddTemplateTestCodeToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :template_test_code, :text end diff --git a/db/migrate/20140730115010_add_supports_user_defined_tests_to_exercises.rb b/db/migrate/20140730115010_add_supports_user_defined_tests_to_exercises.rb index 671396bf..401899b6 100644 --- a/db/migrate/20140730115010_add_supports_user_defined_tests_to_exercises.rb +++ b/db/migrate/20140730115010_add_supports_user_defined_tests_to_exercises.rb @@ -1,4 +1,4 @@ -class AddSupportsUserDefinedTestsToExercises < ActiveRecord::Migration +class AddSupportsUserDefinedTestsToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :supports_user_defined_tests, :boolean end diff --git a/db/migrate/20140805161431_add_testing_framework_to_execution_environments.rb b/db/migrate/20140805161431_add_testing_framework_to_execution_environments.rb index 4d6cb2e3..8b5ea99e 100644 --- a/db/migrate/20140805161431_add_testing_framework_to_execution_environments.rb +++ b/db/migrate/20140805161431_add_testing_framework_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddTestingFrameworkToExecutionEnvironments < ActiveRecord::Migration +class AddTestingFrameworkToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :testing_framework, :string end diff --git a/db/migrate/20140812102114_create_file_types.rb b/db/migrate/20140812102114_create_file_types.rb index 5c1ce8a4..22fd2e4c 100644 --- a/db/migrate/20140812102114_create_file_types.rb +++ b/db/migrate/20140812102114_create_file_types.rb @@ -1,4 +1,4 @@ -class CreateFileTypes < ActiveRecord::Migration +class CreateFileTypes < ActiveRecord::Migration[4.2] def change create_table :file_types do |t| t.string :editor_mode diff --git a/db/migrate/20140812144733_create_files.rb b/db/migrate/20140812144733_create_files.rb index 9729b3bb..789981b9 100644 --- a/db/migrate/20140812144733_create_files.rb +++ b/db/migrate/20140812144733_create_files.rb @@ -1,4 +1,4 @@ -class CreateFiles < ActiveRecord::Migration +class CreateFiles < ActiveRecord::Migration[4.2] def change create_table :files do |t| t.text :content diff --git a/db/migrate/20140812150607_remove_file_type_related_columns_from_execution_environments.rb b/db/migrate/20140812150607_remove_file_type_related_columns_from_execution_environments.rb index 736f6b00..53d14dfd 100644 --- a/db/migrate/20140812150607_remove_file_type_related_columns_from_execution_environments.rb +++ b/db/migrate/20140812150607_remove_file_type_related_columns_from_execution_environments.rb @@ -1,4 +1,4 @@ -class RemoveFileTypeRelatedColumnsFromExecutionEnvironments < ActiveRecord::Migration +class RemoveFileTypeRelatedColumnsFromExecutionEnvironments < ActiveRecord::Migration[4.2] def change remove_column :execution_environments, :editor_mode, :string remove_column :execution_environments, :file_extension, :string diff --git a/db/migrate/20140812150925_remove_file_related_columns_from_exercises.rb b/db/migrate/20140812150925_remove_file_related_columns_from_exercises.rb index c2fb927e..92954d72 100644 --- a/db/migrate/20140812150925_remove_file_related_columns_from_exercises.rb +++ b/db/migrate/20140812150925_remove_file_related_columns_from_exercises.rb @@ -1,4 +1,4 @@ -class RemoveFileRelatedColumnsFromExercises < ActiveRecord::Migration +class RemoveFileRelatedColumnsFromExercises < ActiveRecord::Migration[4.2] def change remove_column :exercises, :reference_implementation, :text remove_column :exercises, :supports_user_defined_tests, :boolean diff --git a/db/migrate/20140813091722_remove_code_from_submissions.rb b/db/migrate/20140813091722_remove_code_from_submissions.rb index 91c4879c..2f8ded5e 100644 --- a/db/migrate/20140813091722_remove_code_from_submissions.rb +++ b/db/migrate/20140813091722_remove_code_from_submissions.rb @@ -1,4 +1,4 @@ -class RemoveCodeFromSubmissions < ActiveRecord::Migration +class RemoveCodeFromSubmissions < ActiveRecord::Migration[4.2] def change remove_column :submissions, :code, :text end diff --git a/db/migrate/20140820170039_add_instructions_to_exercises.rb b/db/migrate/20140820170039_add_instructions_to_exercises.rb index 19c4f4b3..aeab4a95 100644 --- a/db/migrate/20140820170039_add_instructions_to_exercises.rb +++ b/db/migrate/20140820170039_add_instructions_to_exercises.rb @@ -1,4 +1,4 @@ -class AddInstructionsToExercises < ActiveRecord::Migration +class AddInstructionsToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :instructions, :text end diff --git a/db/migrate/20140821064318_add_published_to_exercises.rb b/db/migrate/20140821064318_add_published_to_exercises.rb index c5715cd7..999ba1f5 100644 --- a/db/migrate/20140821064318_add_published_to_exercises.rb +++ b/db/migrate/20140821064318_add_published_to_exercises.rb @@ -1,4 +1,4 @@ -class AddPublishedToExercises < ActiveRecord::Migration +class AddPublishedToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :published, :boolean end diff --git a/db/migrate/20140823172643_add_executable_to_file_types.rb b/db/migrate/20140823172643_add_executable_to_file_types.rb index bb80edae..af2f975f 100644 --- a/db/migrate/20140823172643_add_executable_to_file_types.rb +++ b/db/migrate/20140823172643_add_executable_to_file_types.rb @@ -1,4 +1,4 @@ -class AddExecutableToFileTypes < ActiveRecord::Migration +class AddExecutableToFileTypes < ActiveRecord::Migration[4.2] def change add_column :file_types, :executable, :boolean end diff --git a/db/migrate/20140823173923_add_renderable_to_file_types.rb b/db/migrate/20140823173923_add_renderable_to_file_types.rb index 1917bb7c..034a480a 100644 --- a/db/migrate/20140823173923_add_renderable_to_file_types.rb +++ b/db/migrate/20140823173923_add_renderable_to_file_types.rb @@ -1,4 +1,4 @@ -class AddRenderableToFileTypes < ActiveRecord::Migration +class AddRenderableToFileTypes < ActiveRecord::Migration[4.2] def change add_column :file_types, :renderable, :boolean end diff --git a/db/migrate/20140825121336_create_external_users.rb b/db/migrate/20140825121336_create_external_users.rb index 1d6d5295..e7b9d816 100644 --- a/db/migrate/20140825121336_create_external_users.rb +++ b/db/migrate/20140825121336_create_external_users.rb @@ -1,4 +1,4 @@ -class CreateExternalUsers < ActiveRecord::Migration +class CreateExternalUsers < ActiveRecord::Migration[4.2] def change create_table :external_users do |t| t.belongs_to :consumer diff --git a/db/migrate/20140825125801_create_internal_users.rb b/db/migrate/20140825125801_create_internal_users.rb index db7eee5d..2ff2c342 100644 --- a/db/migrate/20140825125801_create_internal_users.rb +++ b/db/migrate/20140825125801_create_internal_users.rb @@ -1,4 +1,4 @@ -class CreateInternalUsers < ActiveRecord::Migration +class CreateInternalUsers < ActiveRecord::Migration[4.2] def change create_table :internal_users do |t| t.belongs_to :consumer diff --git a/db/migrate/20140825154202_drop_users.rb b/db/migrate/20140825154202_drop_users.rb index 499f5b2c..201b6433 100644 --- a/db/migrate/20140825154202_drop_users.rb +++ b/db/migrate/20140825154202_drop_users.rb @@ -1,4 +1,4 @@ -class DropUsers < ActiveRecord::Migration +class DropUsers < ActiveRecord::Migration[4.2] def change drop_table :users end diff --git a/db/migrate/20140825161350_add_user_type_to_exercises.rb b/db/migrate/20140825161350_add_user_type_to_exercises.rb index c02b71a9..c9c44d47 100644 --- a/db/migrate/20140825161350_add_user_type_to_exercises.rb +++ b/db/migrate/20140825161350_add_user_type_to_exercises.rb @@ -1,4 +1,4 @@ -class AddUserTypeToExercises < ActiveRecord::Migration +class AddUserTypeToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :user_type, :string end diff --git a/db/migrate/20140825161358_add_user_type_to_file_types.rb b/db/migrate/20140825161358_add_user_type_to_file_types.rb index 73d178d6..09eb709e 100644 --- a/db/migrate/20140825161358_add_user_type_to_file_types.rb +++ b/db/migrate/20140825161358_add_user_type_to_file_types.rb @@ -1,4 +1,4 @@ -class AddUserTypeToFileTypes < ActiveRecord::Migration +class AddUserTypeToFileTypes < ActiveRecord::Migration[4.2] def change add_column :file_types, :user_type, :string end diff --git a/db/migrate/20140825161406_add_user_type_to_submissions.rb b/db/migrate/20140825161406_add_user_type_to_submissions.rb index 098e9ab3..fd72ba6c 100644 --- a/db/migrate/20140825161406_add_user_type_to_submissions.rb +++ b/db/migrate/20140825161406_add_user_type_to_submissions.rb @@ -1,4 +1,4 @@ -class AddUserTypeToSubmissions < ActiveRecord::Migration +class AddUserTypeToSubmissions < ActiveRecord::Migration[4.2] def change add_column :submissions, :user_type, :string end diff --git a/db/migrate/20140826073318_sorcery_core.rb b/db/migrate/20140826073318_sorcery_core.rb index d196f588..077e88b8 100644 --- a/db/migrate/20140826073318_sorcery_core.rb +++ b/db/migrate/20140826073318_sorcery_core.rb @@ -1,4 +1,4 @@ -class SorceryCore < ActiveRecord::Migration +class SorceryCore < ActiveRecord::Migration[4.2] def change InternalUser.delete_all add_column :internal_users, :crypted_password, :string, null: false diff --git a/db/migrate/20140826073319_sorcery_brute_force_protection.rb b/db/migrate/20140826073319_sorcery_brute_force_protection.rb index 7bac89d9..abd9d835 100644 --- a/db/migrate/20140826073319_sorcery_brute_force_protection.rb +++ b/db/migrate/20140826073319_sorcery_brute_force_protection.rb @@ -1,4 +1,4 @@ -class SorceryBruteForceProtection < ActiveRecord::Migration +class SorceryBruteForceProtection < ActiveRecord::Migration[4.2] def change add_column :internal_users, :failed_logins_count, :integer, default: 0 add_column :internal_users, :lock_expires_at, :datetime, default: nil diff --git a/db/migrate/20140826073320_sorcery_remember_me.rb b/db/migrate/20140826073320_sorcery_remember_me.rb index 3b14bca8..f232eb09 100644 --- a/db/migrate/20140826073320_sorcery_remember_me.rb +++ b/db/migrate/20140826073320_sorcery_remember_me.rb @@ -1,4 +1,4 @@ -class SorceryRememberMe < ActiveRecord::Migration +class SorceryRememberMe < ActiveRecord::Migration[4.2] def change add_column :internal_users, :remember_me_token, :string, default: nil add_column :internal_users, :remember_me_token_expires_at, :datetime, default: nil diff --git a/db/migrate/20140826073321_sorcery_reset_password.rb b/db/migrate/20140826073321_sorcery_reset_password.rb index 3ca6a3e4..74ab7c8d 100644 --- a/db/migrate/20140826073321_sorcery_reset_password.rb +++ b/db/migrate/20140826073321_sorcery_reset_password.rb @@ -1,4 +1,4 @@ -class SorceryResetPassword < ActiveRecord::Migration +class SorceryResetPassword < ActiveRecord::Migration[4.2] def change add_column :internal_users, :reset_password_token, :string, default: nil add_column :internal_users, :reset_password_token_expires_at, :datetime, default: nil diff --git a/db/migrate/20140826073322_sorcery_user_activation.rb b/db/migrate/20140826073322_sorcery_user_activation.rb index 577273af..47fc60f1 100644 --- a/db/migrate/20140826073322_sorcery_user_activation.rb +++ b/db/migrate/20140826073322_sorcery_user_activation.rb @@ -1,4 +1,4 @@ -class SorceryUserActivation < ActiveRecord::Migration +class SorceryUserActivation < ActiveRecord::Migration[4.2] def change add_column :internal_users, :activation_state, :string, default: nil add_column :internal_users, :activation_token, :string, default: nil diff --git a/db/migrate/20140827065359_add_binary_to_file_types.rb b/db/migrate/20140827065359_add_binary_to_file_types.rb index 2ac3e006..0fa3c65d 100644 --- a/db/migrate/20140827065359_add_binary_to_file_types.rb +++ b/db/migrate/20140827065359_add_binary_to_file_types.rb @@ -1,4 +1,4 @@ -class AddBinaryToFileTypes < ActiveRecord::Migration +class AddBinaryToFileTypes < ActiveRecord::Migration[4.2] def change add_column :file_types, :binary, :boolean end diff --git a/db/migrate/20140827083957_add_native_file_to_files.rb b/db/migrate/20140827083957_add_native_file_to_files.rb index 967bbd92..cafe27f5 100644 --- a/db/migrate/20140827083957_add_native_file_to_files.rb +++ b/db/migrate/20140827083957_add_native_file_to_files.rb @@ -1,4 +1,4 @@ -class AddNativeFileToFiles < ActiveRecord::Migration +class AddNativeFileToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :native_file, :string end diff --git a/db/migrate/20140829141913_create_hints.rb b/db/migrate/20140829141913_create_hints.rb index cf91a20e..ca49c91b 100644 --- a/db/migrate/20140829141913_create_hints.rb +++ b/db/migrate/20140829141913_create_hints.rb @@ -1,4 +1,4 @@ -class CreateHints < ActiveRecord::Migration +class CreateHints < ActiveRecord::Migration[4.2] def change create_table :hints do |t| t.belongs_to :execution_environment diff --git a/db/migrate/20140903093436_remove_not_null_constraints_from_internal_users.rb b/db/migrate/20140903093436_remove_not_null_constraints_from_internal_users.rb index dbd6d05c..d1f11303 100644 --- a/db/migrate/20140903093436_remove_not_null_constraints_from_internal_users.rb +++ b/db/migrate/20140903093436_remove_not_null_constraints_from_internal_users.rb @@ -1,4 +1,4 @@ -class RemoveNotNullConstraintsFromInternalUsers < ActiveRecord::Migration +class RemoveNotNullConstraintsFromInternalUsers < ActiveRecord::Migration[4.2] def change change_column_null(:internal_users, :crypted_password, true) change_column_null(:internal_users, :salt, true) diff --git a/db/migrate/20140903165113_create_errors.rb b/db/migrate/20140903165113_create_errors.rb index 9c14ed14..27534d38 100644 --- a/db/migrate/20140903165113_create_errors.rb +++ b/db/migrate/20140903165113_create_errors.rb @@ -1,4 +1,4 @@ -class CreateErrors < ActiveRecord::Migration +class CreateErrors < ActiveRecord::Migration[4.2] def change create_table :errors do |t| t.belongs_to :execution_environment diff --git a/db/migrate/20140904082810_add_token_to_exercises.rb b/db/migrate/20140904082810_add_token_to_exercises.rb index f184613c..14e7a459 100644 --- a/db/migrate/20140904082810_add_token_to_exercises.rb +++ b/db/migrate/20140904082810_add_token_to_exercises.rb @@ -1,4 +1,4 @@ -class AddTokenToExercises < ActiveRecord::Migration +class AddTokenToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :token, :string end diff --git a/db/migrate/20140909115430_add_file_id_to_exercises.rb b/db/migrate/20140909115430_add_file_id_to_exercises.rb index bfc4991d..09990eac 100644 --- a/db/migrate/20140909115430_add_file_id_to_exercises.rb +++ b/db/migrate/20140909115430_add_file_id_to_exercises.rb @@ -1,4 +1,4 @@ -class AddFileIdToExercises < ActiveRecord::Migration +class AddFileIdToExercises < ActiveRecord::Migration[4.2] def change add_reference :exercises, :file end diff --git a/db/migrate/20140915095420_add_role_to_files.rb b/db/migrate/20140915095420_add_role_to_files.rb index 79ba64b2..47774e4c 100644 --- a/db/migrate/20140915095420_add_role_to_files.rb +++ b/db/migrate/20140915095420_add_role_to_files.rb @@ -1,4 +1,4 @@ -class AddRoleToFiles < ActiveRecord::Migration +class AddRoleToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :role, :string end diff --git a/db/migrate/20140915122846_remove_file_id_from_exercises.rb b/db/migrate/20140915122846_remove_file_id_from_exercises.rb index 73a5effb..955f4d13 100644 --- a/db/migrate/20140915122846_remove_file_id_from_exercises.rb +++ b/db/migrate/20140915122846_remove_file_id_from_exercises.rb @@ -1,4 +1,4 @@ -class RemoveFileIdFromExercises < ActiveRecord::Migration +class RemoveFileIdFromExercises < ActiveRecord::Migration[4.2] def change remove_reference :exercises, :file end diff --git a/db/migrate/20140918063522_add_hashed_content_to_files.rb b/db/migrate/20140918063522_add_hashed_content_to_files.rb index c4606181..44c103f0 100644 --- a/db/migrate/20140918063522_add_hashed_content_to_files.rb +++ b/db/migrate/20140918063522_add_hashed_content_to_files.rb @@ -1,4 +1,4 @@ -class AddHashedContentToFiles < ActiveRecord::Migration +class AddHashedContentToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :hashed_content, :string diff --git a/db/migrate/20140922161120_add_feedback_message_to_files.rb b/db/migrate/20140922161120_add_feedback_message_to_files.rb index 18da6444..a5908e00 100644 --- a/db/migrate/20140922161120_add_feedback_message_to_files.rb +++ b/db/migrate/20140922161120_add_feedback_message_to_files.rb @@ -1,4 +1,4 @@ -class AddFeedbackMessageToFiles < ActiveRecord::Migration +class AddFeedbackMessageToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :feedback_message, :string end diff --git a/db/migrate/20140922161226_add_weight_to_files.rb b/db/migrate/20140922161226_add_weight_to_files.rb index a22388f4..c2664529 100644 --- a/db/migrate/20140922161226_add_weight_to_files.rb +++ b/db/migrate/20140922161226_add_weight_to_files.rb @@ -1,4 +1,4 @@ -class AddWeightToFiles < ActiveRecord::Migration +class AddWeightToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :weight, :float end diff --git a/db/migrate/20141003072729_add_help_to_execution_environments.rb b/db/migrate/20141003072729_add_help_to_execution_environments.rb index 631dd278..057aac53 100644 --- a/db/migrate/20141003072729_add_help_to_execution_environments.rb +++ b/db/migrate/20141003072729_add_help_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddHelpToExecutionEnvironments < ActiveRecord::Migration +class AddHelpToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :help, :text end diff --git a/db/migrate/20141004114747_add_exposed_ports_to_execution_environments.rb b/db/migrate/20141004114747_add_exposed_ports_to_execution_environments.rb index dcc00d03..b930022b 100644 --- a/db/migrate/20141004114747_add_exposed_ports_to_execution_environments.rb +++ b/db/migrate/20141004114747_add_exposed_ports_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddExposedPortsToExecutionEnvironments < ActiveRecord::Migration +class AddExposedPortsToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :exposed_ports, :string end diff --git a/db/migrate/20141009110434_add_permitted_execution_time_to_execution_environments.rb b/db/migrate/20141009110434_add_permitted_execution_time_to_execution_environments.rb index 5bd83ff1..c7c73ca3 100644 --- a/db/migrate/20141009110434_add_permitted_execution_time_to_execution_environments.rb +++ b/db/migrate/20141009110434_add_permitted_execution_time_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddPermittedExecutionTimeToExecutionEnvironments < ActiveRecord::Migration +class AddPermittedExecutionTimeToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :permitted_execution_time, :integer end diff --git a/db/migrate/20141011145303_add_user_id_and_user_type_to_execution_environments.rb b/db/migrate/20141011145303_add_user_id_and_user_type_to_execution_environments.rb index 2acd1797..b0ef78fc 100644 --- a/db/migrate/20141011145303_add_user_id_and_user_type_to_execution_environments.rb +++ b/db/migrate/20141011145303_add_user_id_and_user_type_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddUserIdAndUserTypeToExecutionEnvironments < ActiveRecord::Migration +class AddUserIdAndUserTypeToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_reference :execution_environments, :user add_column :execution_environments, :user_type, :string diff --git a/db/migrate/20141017110211_rename_published_to_public.rb b/db/migrate/20141017110211_rename_published_to_public.rb index e20b2282..f651460c 100644 --- a/db/migrate/20141017110211_rename_published_to_public.rb +++ b/db/migrate/20141017110211_rename_published_to_public.rb @@ -1,4 +1,4 @@ -class RenamePublishedToPublic < ActiveRecord::Migration +class RenamePublishedToPublic < ActiveRecord::Migration[4.2] def change rename_column :exercises, :published, :public end diff --git a/db/migrate/20141031161603_add_path_to_files.rb b/db/migrate/20141031161603_add_path_to_files.rb index 9d5501cf..46b012d4 100644 --- a/db/migrate/20141031161603_add_path_to_files.rb +++ b/db/migrate/20141031161603_add_path_to_files.rb @@ -1,4 +1,4 @@ -class AddPathToFiles < ActiveRecord::Migration +class AddPathToFiles < ActiveRecord::Migration[4.2] def change add_column :files, :path, :string end diff --git a/db/migrate/20141119131607_create_comments.rb b/db/migrate/20141119131607_create_comments.rb index faff81cd..eb697231 100644 --- a/db/migrate/20141119131607_create_comments.rb +++ b/db/migrate/20141119131607_create_comments.rb @@ -1,4 +1,4 @@ -class CreateComments < ActiveRecord::Migration +class CreateComments < ActiveRecord::Migration[4.2] def change create_table :comments do |t| t.references :user, index: true diff --git a/db/migrate/20150128083123_create_teams.rb b/db/migrate/20150128083123_create_teams.rb index cdb0da35..f2f7c543 100644 --- a/db/migrate/20150128083123_create_teams.rb +++ b/db/migrate/20150128083123_create_teams.rb @@ -1,4 +1,4 @@ -class CreateTeams < ActiveRecord::Migration +class CreateTeams < ActiveRecord::Migration[4.2] def change create_table :teams do |t| t.string :name diff --git a/db/migrate/20150128084834_create_internal_users_teams.rb b/db/migrate/20150128084834_create_internal_users_teams.rb index 8fe51717..ece283c2 100644 --- a/db/migrate/20150128084834_create_internal_users_teams.rb +++ b/db/migrate/20150128084834_create_internal_users_teams.rb @@ -1,4 +1,4 @@ -class CreateInternalUsersTeams < ActiveRecord::Migration +class CreateInternalUsersTeams < ActiveRecord::Migration[4.2] def change create_table :internal_users_teams do |t| t.belongs_to :internal_user, index: true diff --git a/db/migrate/20150128093003_add_team_id_to_exercises.rb b/db/migrate/20150128093003_add_team_id_to_exercises.rb index 7911bdf7..04c58cd0 100644 --- a/db/migrate/20150128093003_add_team_id_to_exercises.rb +++ b/db/migrate/20150128093003_add_team_id_to_exercises.rb @@ -1,4 +1,4 @@ -class AddTeamIdToExercises < ActiveRecord::Migration +class AddTeamIdToExercises < ActiveRecord::Migration[4.2] def change add_reference :exercises, :team end diff --git a/db/migrate/20150204080832_add_pool_size_to_execution_environments.rb b/db/migrate/20150204080832_add_pool_size_to_execution_environments.rb index 0980984f..aab35315 100644 --- a/db/migrate/20150204080832_add_pool_size_to_execution_environments.rb +++ b/db/migrate/20150204080832_add_pool_size_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddPoolSizeToExecutionEnvironments < ActiveRecord::Migration +class AddPoolSizeToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :pool_size, :integer diff --git a/db/migrate/20150310150712_add_file_type_id_to_execution_environments.rb b/db/migrate/20150310150712_add_file_type_id_to_execution_environments.rb index d57907c2..214bcec0 100644 --- a/db/migrate/20150310150712_add_file_type_id_to_execution_environments.rb +++ b/db/migrate/20150310150712_add_file_type_id_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddFileTypeIdToExecutionEnvironments < ActiveRecord::Migration +class AddFileTypeIdToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_reference :execution_environments, :file_type end diff --git a/db/migrate/20150317083739_add_memory_limit_to_execution_environments.rb b/db/migrate/20150317083739_add_memory_limit_to_execution_environments.rb index b2ee957c..899b7d50 100644 --- a/db/migrate/20150317083739_add_memory_limit_to_execution_environments.rb +++ b/db/migrate/20150317083739_add_memory_limit_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddMemoryLimitToExecutionEnvironments < ActiveRecord::Migration +class AddMemoryLimitToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :memory_limit, :integer diff --git a/db/migrate/20150317115338_add_network_enabled_to_execution_environments.rb b/db/migrate/20150317115338_add_network_enabled_to_execution_environments.rb index 2d86bdaf..c328a298 100644 --- a/db/migrate/20150317115338_add_network_enabled_to_execution_environments.rb +++ b/db/migrate/20150317115338_add_network_enabled_to_execution_environments.rb @@ -1,4 +1,4 @@ -class AddNetworkEnabledToExecutionEnvironments < ActiveRecord::Migration +class AddNetworkEnabledToExecutionEnvironments < ActiveRecord::Migration[4.2] def change add_column :execution_environments, :network_enabled, :boolean diff --git a/db/migrate/20150327141740_create_request_for_comments.rb b/db/migrate/20150327141740_create_request_for_comments.rb index ad3882d2..a89b947b 100644 --- a/db/migrate/20150327141740_create_request_for_comments.rb +++ b/db/migrate/20150327141740_create_request_for_comments.rb @@ -1,4 +1,4 @@ -class CreateRequestForComments < ActiveRecord::Migration +class CreateRequestForComments < ActiveRecord::Migration[4.2] def change create_table :request_for_comments do |t| t.integer :requestorid, :null => false diff --git a/db/migrate/20150408155923_add_submission_to_error.rb b/db/migrate/20150408155923_add_submission_to_error.rb index d90d1679..e7363e0d 100644 --- a/db/migrate/20150408155923_add_submission_to_error.rb +++ b/db/migrate/20150408155923_add_submission_to_error.rb @@ -1,4 +1,4 @@ -class AddSubmissionToError < ActiveRecord::Migration +class AddSubmissionToError < ActiveRecord::Migration[4.2] def change add_reference :errors, :submission, index: true end diff --git a/db/migrate/20150421074734_add_file_index_to_files.rb b/db/migrate/20150421074734_add_file_index_to_files.rb index ffa20ae8..c18d09f1 100644 --- a/db/migrate/20150421074734_add_file_index_to_files.rb +++ b/db/migrate/20150421074734_add_file_index_to_files.rb @@ -1,4 +1,4 @@ -class AddFileIndexToFiles < ActiveRecord::Migration +class AddFileIndexToFiles < ActiveRecord::Migration[4.2] def change add_index(:files, [:context_id, :context_type]) end diff --git a/db/migrate/20150818141554_add_user_type_to_request_for_comments.rb b/db/migrate/20150818141554_add_user_type_to_request_for_comments.rb index f1450bff..86eff763 100644 --- a/db/migrate/20150818141554_add_user_type_to_request_for_comments.rb +++ b/db/migrate/20150818141554_add_user_type_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddUserTypeToRequestForComments < ActiveRecord::Migration +class AddUserTypeToRequestForComments < ActiveRecord::Migration[4.2] def change add_column :request_for_comments, :user_type, :string end diff --git a/db/migrate/20150818142251_correct_column_names.rb b/db/migrate/20150818142251_correct_column_names.rb index dd73814a..0fcb2d70 100644 --- a/db/migrate/20150818142251_correct_column_names.rb +++ b/db/migrate/20150818142251_correct_column_names.rb @@ -1,4 +1,4 @@ -class CorrectColumnNames < ActiveRecord::Migration +class CorrectColumnNames < ActiveRecord::Migration[4.2] def change rename_column :request_for_comments, :requestorid, :requestor_user_id rename_column :request_for_comments, :exerciseid, :exercise_id diff --git a/db/migrate/20150903152727_remove_requestor_from_request_for_comments.rb b/db/migrate/20150903152727_remove_requestor_from_request_for_comments.rb index f9857f43..134649bf 100644 --- a/db/migrate/20150903152727_remove_requestor_from_request_for_comments.rb +++ b/db/migrate/20150903152727_remove_requestor_from_request_for_comments.rb @@ -1,4 +1,4 @@ -class RemoveRequestorFromRequestForComments < ActiveRecord::Migration +class RemoveRequestorFromRequestForComments < ActiveRecord::Migration[4.2] def change rename_column :request_for_comments, :requestor_user_id, :user_id end diff --git a/db/migrate/20150922125415_add_hide_file_tree_to_exercises.rb b/db/migrate/20150922125415_add_hide_file_tree_to_exercises.rb index 9890c35b..fce56b0a 100644 --- a/db/migrate/20150922125415_add_hide_file_tree_to_exercises.rb +++ b/db/migrate/20150922125415_add_hide_file_tree_to_exercises.rb @@ -1,4 +1,4 @@ -class AddHideFileTreeToExercises < ActiveRecord::Migration +class AddHideFileTreeToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :hide_file_tree, :boolean end diff --git a/db/migrate/20160204094409_create_code_harbor_links.rb b/db/migrate/20160204094409_create_code_harbor_links.rb index b87d5c9d..f159362b 100644 --- a/db/migrate/20160204094409_create_code_harbor_links.rb +++ b/db/migrate/20160204094409_create_code_harbor_links.rb @@ -1,4 +1,4 @@ -class CreateCodeHarborLinks < ActiveRecord::Migration +class CreateCodeHarborLinks < ActiveRecord::Migration[4.2] def change create_table :code_harbor_links do |t| t.string :oauth2token diff --git a/db/migrate/20160204111716_add_user_to_code_harbor_link.rb b/db/migrate/20160204111716_add_user_to_code_harbor_link.rb index fe509666..0bf4b575 100644 --- a/db/migrate/20160204111716_add_user_to_code_harbor_link.rb +++ b/db/migrate/20160204111716_add_user_to_code_harbor_link.rb @@ -1,4 +1,4 @@ -class AddUserToCodeHarborLink < ActiveRecord::Migration +class AddUserToCodeHarborLink < ActiveRecord::Migration[4.2] def change add_reference :code_harbor_links, :user, polymorphic: true, index: true end diff --git a/db/migrate/20160302133540_create_testruns.rb b/db/migrate/20160302133540_create_testruns.rb index 7590f2a3..fa622cfe 100644 --- a/db/migrate/20160302133540_create_testruns.rb +++ b/db/migrate/20160302133540_create_testruns.rb @@ -1,4 +1,4 @@ -class CreateTestruns < ActiveRecord::Migration +class CreateTestruns < ActiveRecord::Migration[4.2] def change create_table :testruns do |t| t.boolean :passed diff --git a/db/migrate/20160426114951_add_question_to_request_for_comments.rb b/db/migrate/20160426114951_add_question_to_request_for_comments.rb index 3c9fac17..31c3f60e 100644 --- a/db/migrate/20160426114951_add_question_to_request_for_comments.rb +++ b/db/migrate/20160426114951_add_question_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddQuestionToRequestForComments < ActiveRecord::Migration +class AddQuestionToRequestForComments < ActiveRecord::Migration[4.2] def change add_column :request_for_comments, :question, :text end diff --git a/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb b/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb index ade1bb26..37df9904 100644 --- a/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb +++ b/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb @@ -1,4 +1,4 @@ -class AddAllowFileCreationToExercises < ActiveRecord::Migration +class AddAllowFileCreationToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :allow_file_creation, :boolean end diff --git a/db/migrate/20160512131539_change_comment_text_attribute_to_text_datatype.rb b/db/migrate/20160512131539_change_comment_text_attribute_to_text_datatype.rb index cc039c6a..148ec9ea 100644 --- a/db/migrate/20160512131539_change_comment_text_attribute_to_text_datatype.rb +++ b/db/migrate/20160512131539_change_comment_text_attribute_to_text_datatype.rb @@ -1,4 +1,4 @@ -class ChangeCommentTextAttributeToTextDatatype < ActiveRecord::Migration +class ChangeCommentTextAttributeToTextDatatype < ActiveRecord::Migration[4.2] def up change_column :comments, :text, :text end diff --git a/db/migrate/20160609185708_create_file_templates.rb b/db/migrate/20160609185708_create_file_templates.rb index 43cde0d0..aa111443 100644 --- a/db/migrate/20160609185708_create_file_templates.rb +++ b/db/migrate/20160609185708_create_file_templates.rb @@ -1,4 +1,4 @@ -class CreateFileTemplates < ActiveRecord::Migration +class CreateFileTemplates < ActiveRecord::Migration[4.2] def change create_table :file_templates do |t| t.string :name diff --git a/db/migrate/20160610111602_add_file_template_to_file.rb b/db/migrate/20160610111602_add_file_template_to_file.rb index a595e90b..dbcc83e5 100644 --- a/db/migrate/20160610111602_add_file_template_to_file.rb +++ b/db/migrate/20160610111602_add_file_template_to_file.rb @@ -1,4 +1,4 @@ -class AddFileTemplateToFile < ActiveRecord::Migration +class AddFileTemplateToFile < ActiveRecord::Migration[4.2] def change add_reference :files, :file_template end diff --git a/db/migrate/20160624130951_add_solved_to_request_for_comments.rb b/db/migrate/20160624130951_add_solved_to_request_for_comments.rb index f9061ea0..bfa1e2a1 100644 --- a/db/migrate/20160624130951_add_solved_to_request_for_comments.rb +++ b/db/migrate/20160624130951_add_solved_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddSolvedToRequestForComments < ActiveRecord::Migration +class AddSolvedToRequestForComments < ActiveRecord::Migration[4.2] def change add_column :request_for_comments, :solved, :boolean end diff --git a/db/migrate/20160630154310_add_submission_to_request_for_comments.rb b/db/migrate/20160630154310_add_submission_to_request_for_comments.rb index a532bcf9..4e2e1494 100644 --- a/db/migrate/20160630154310_add_submission_to_request_for_comments.rb +++ b/db/migrate/20160630154310_add_submission_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddSubmissionToRequestForComments < ActiveRecord::Migration +class AddSubmissionToRequestForComments < ActiveRecord::Migration[4.2] def change add_reference :request_for_comments, :submission end diff --git a/db/migrate/20160701092140_remove_requested_at_from_request_for_comments.rb b/db/migrate/20160701092140_remove_requested_at_from_request_for_comments.rb index bb5611f6..75f2236a 100644 --- a/db/migrate/20160701092140_remove_requested_at_from_request_for_comments.rb +++ b/db/migrate/20160701092140_remove_requested_at_from_request_for_comments.rb @@ -1,4 +1,4 @@ -class RemoveRequestedAtFromRequestForComments < ActiveRecord::Migration +class RemoveRequestedAtFromRequestForComments < ActiveRecord::Migration[4.2] def change remove_column :request_for_comments, :requested_at end diff --git a/db/migrate/20160704143402_remove_teams.rb b/db/migrate/20160704143402_remove_teams.rb index 20b8a204..f093a4f6 100644 --- a/db/migrate/20160704143402_remove_teams.rb +++ b/db/migrate/20160704143402_remove_teams.rb @@ -1,4 +1,4 @@ -class RemoveTeams < ActiveRecord::Migration +class RemoveTeams < ActiveRecord::Migration[4.2] def change remove_reference :exercises, :team drop_table :teams diff --git a/db/migrate/20160907123009_add_allow_auto_completion_to_exercises.rb b/db/migrate/20160907123009_add_allow_auto_completion_to_exercises.rb index 99941e36..03ce4757 100644 --- a/db/migrate/20160907123009_add_allow_auto_completion_to_exercises.rb +++ b/db/migrate/20160907123009_add_allow_auto_completion_to_exercises.rb @@ -1,4 +1,4 @@ -class AddAllowAutoCompletionToExercises < ActiveRecord::Migration +class AddAllowAutoCompletionToExercises < ActiveRecord::Migration[4.2] def change add_column :exercises, :allow_auto_completion, :boolean, default: false end diff --git a/db/migrate/20170112151637_create_lti_parameters.rb b/db/migrate/20170112151637_create_lti_parameters.rb index 80348843..b6370387 100644 --- a/db/migrate/20170112151637_create_lti_parameters.rb +++ b/db/migrate/20170112151637_create_lti_parameters.rb @@ -1,4 +1,4 @@ -class CreateLtiParameters < ActiveRecord::Migration +class CreateLtiParameters < ActiveRecord::Migration[4.2] def change create_table :lti_parameters do |t| t.belongs_to :external_users diff --git a/db/migrate/20170202170437_create_remote_evaluation_mappings.rb b/db/migrate/20170202170437_create_remote_evaluation_mappings.rb index d102370d..f04cc2ed 100644 --- a/db/migrate/20170202170437_create_remote_evaluation_mappings.rb +++ b/db/migrate/20170202170437_create_remote_evaluation_mappings.rb @@ -1,4 +1,4 @@ -class CreateRemoteEvaluationMappings < ActiveRecord::Migration +class CreateRemoteEvaluationMappings < ActiveRecord::Migration[4.2] def change create_table :remote_evaluation_mappings do |t| t.integer "user_id", null: false diff --git a/db/migrate/20170205163247_create_exercise_collections.rb b/db/migrate/20170205163247_create_exercise_collections.rb index ef27f756..157a96f8 100644 --- a/db/migrate/20170205163247_create_exercise_collections.rb +++ b/db/migrate/20170205163247_create_exercise_collections.rb @@ -1,4 +1,4 @@ -class CreateExerciseCollections < ActiveRecord::Migration +class CreateExerciseCollections < ActiveRecord::Migration[4.2] def change create_table :exercise_collections do |t| t.string :name diff --git a/db/migrate/20170205165450_create_proxy_exercises.rb b/db/migrate/20170205165450_create_proxy_exercises.rb index fb2704ce..7bb9d8cc 100644 --- a/db/migrate/20170205165450_create_proxy_exercises.rb +++ b/db/migrate/20170205165450_create_proxy_exercises.rb @@ -1,4 +1,4 @@ -class CreateProxyExercises < ActiveRecord::Migration +class CreateProxyExercises < ActiveRecord::Migration[4.2] def change create_table :proxy_exercises do |t| t.string :title diff --git a/db/migrate/20170205210357_create_interventions.rb b/db/migrate/20170205210357_create_interventions.rb index 07223e1c..b8eb3132 100644 --- a/db/migrate/20170205210357_create_interventions.rb +++ b/db/migrate/20170205210357_create_interventions.rb @@ -1,4 +1,4 @@ -class CreateInterventions < ActiveRecord::Migration +class CreateInterventions < ActiveRecord::Migration[4.2] def change create_table :user_exercise_interventions do |t| t.belongs_to :user, polymorphic: true diff --git a/db/migrate/20170206141210_add_tags.rb b/db/migrate/20170206141210_add_tags.rb index 8c0c129a..77d048af 100644 --- a/db/migrate/20170206141210_add_tags.rb +++ b/db/migrate/20170206141210_add_tags.rb @@ -1,4 +1,4 @@ -class AddTags < ActiveRecord::Migration +class AddTags < ActiveRecord::Migration[4.2] def change add_column :exercises, :expected_worktime_seconds, :integer, default: 60 diff --git a/db/migrate/20170206152503_add_user_feedback.rb b/db/migrate/20170206152503_add_user_feedback.rb index f62ccd9d..c860e630 100644 --- a/db/migrate/20170206152503_add_user_feedback.rb +++ b/db/migrate/20170206152503_add_user_feedback.rb @@ -1,4 +1,4 @@ -class AddUserFeedback < ActiveRecord::Migration +class AddUserFeedback < ActiveRecord::Migration[4.2] def change create_table :user_exercise_feedbacks do |t| t.belongs_to :exercise, null: false diff --git a/db/migrate/20170228165741_add_search.rb b/db/migrate/20170228165741_add_search.rb index a36d94ff..c7168cc6 100644 --- a/db/migrate/20170228165741_add_search.rb +++ b/db/migrate/20170228165741_add_search.rb @@ -1,4 +1,4 @@ -class AddSearch < ActiveRecord::Migration +class AddSearch < ActiveRecord::Migration[4.2] def change create_table :searches do |t| t.belongs_to :exercise, null: false diff --git a/db/migrate/20170321150454_add_reason_to_user_proxy_exercise_exercise.rb b/db/migrate/20170321150454_add_reason_to_user_proxy_exercise_exercise.rb index 93ab0cf0..f257dcf3 100644 --- a/db/migrate/20170321150454_add_reason_to_user_proxy_exercise_exercise.rb +++ b/db/migrate/20170321150454_add_reason_to_user_proxy_exercise_exercise.rb @@ -1,4 +1,4 @@ -class AddReasonToUserProxyExerciseExercise < ActiveRecord::Migration +class AddReasonToUserProxyExerciseExercise < ActiveRecord::Migration[4.2] def change change_table :user_proxy_exercise_exercises do |t| t.string :reason diff --git a/db/migrate/20170323130756_add_index_to_submissions.rb b/db/migrate/20170323130756_add_index_to_submissions.rb index 185500d3..128f43bb 100644 --- a/db/migrate/20170323130756_add_index_to_submissions.rb +++ b/db/migrate/20170323130756_add_index_to_submissions.rb @@ -1,4 +1,4 @@ -class AddIndexToSubmissions < ActiveRecord::Migration +class AddIndexToSubmissions < ActiveRecord::Migration[4.2] def change add_index :submissions, :exercise_id add_index :submissions, :user_id diff --git a/db/migrate/20170403162848_set_default_for_request_for_comment_solved.rb b/db/migrate/20170403162848_set_default_for_request_for_comment_solved.rb index 6e01dcd4..d952e51a 100644 --- a/db/migrate/20170403162848_set_default_for_request_for_comment_solved.rb +++ b/db/migrate/20170403162848_set_default_for_request_for_comment_solved.rb @@ -1,4 +1,4 @@ -class SetDefaultForRequestForCommentSolved < ActiveRecord::Migration +class SetDefaultForRequestForCommentSolved < ActiveRecord::Migration[4.2] def change change_column_default :request_for_comments, :solved, false RequestForComment.where(solved: nil).update_all(solved: false) diff --git a/db/migrate/20170411090543_improve_user_feedback.rb b/db/migrate/20170411090543_improve_user_feedback.rb index bfbd8a02..bf89aafc 100644 --- a/db/migrate/20170411090543_improve_user_feedback.rb +++ b/db/migrate/20170411090543_improve_user_feedback.rb @@ -1,4 +1,4 @@ -class ImproveUserFeedback < ActiveRecord::Migration +class ImproveUserFeedback < ActiveRecord::Migration[4.2] def change add_column :user_exercise_feedbacks, :user_estimated_worktime, :integer end diff --git a/db/migrate/20170608141612_add_thank_you_note_to_request_for_comments.rb b/db/migrate/20170608141612_add_thank_you_note_to_request_for_comments.rb index fb767aad..b75f3589 100644 --- a/db/migrate/20170608141612_add_thank_you_note_to_request_for_comments.rb +++ b/db/migrate/20170608141612_add_thank_you_note_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddThankYouNoteToRequestForComments < ActiveRecord::Migration +class AddThankYouNoteToRequestForComments < ActiveRecord::Migration[4.2] def change add_column :request_for_comments, :thank_you_note, :text end diff --git a/db/migrate/20170703075832_create_error_templates.rb b/db/migrate/20170703075832_create_error_templates.rb index 6f442842..5556f4ea 100644 --- a/db/migrate/20170703075832_create_error_templates.rb +++ b/db/migrate/20170703075832_create_error_templates.rb @@ -1,4 +1,4 @@ -class CreateErrorTemplates < ActiveRecord::Migration +class CreateErrorTemplates < ActiveRecord::Migration[4.2] def change create_table :error_templates do |t| t.belongs_to :execution_environment diff --git a/db/migrate/20170703075959_create_error_template_attributes.rb b/db/migrate/20170703075959_create_error_template_attributes.rb index 3503fcac..aa733b09 100644 --- a/db/migrate/20170703075959_create_error_template_attributes.rb +++ b/db/migrate/20170703075959_create_error_template_attributes.rb @@ -1,4 +1,4 @@ -class CreateErrorTemplateAttributes < ActiveRecord::Migration +class CreateErrorTemplateAttributes < ActiveRecord::Migration[4.2] def change create_table :error_template_attributes do |t| t.belongs_to :error_template diff --git a/db/migrate/20170703080205_create_structured_errors.rb b/db/migrate/20170703080205_create_structured_errors.rb index 560649b4..111923ca 100644 --- a/db/migrate/20170703080205_create_structured_errors.rb +++ b/db/migrate/20170703080205_create_structured_errors.rb @@ -1,4 +1,4 @@ -class CreateStructuredErrors < ActiveRecord::Migration +class CreateStructuredErrors < ActiveRecord::Migration[4.2] def change create_table :structured_errors do |t| t.references :error_template diff --git a/db/migrate/20170703080355_create_structured_error_attributes.rb b/db/migrate/20170703080355_create_structured_error_attributes.rb index aa9ee04e..81bc1d19 100644 --- a/db/migrate/20170703080355_create_structured_error_attributes.rb +++ b/db/migrate/20170703080355_create_structured_error_attributes.rb @@ -1,4 +1,4 @@ -class CreateStructuredErrorAttributes < ActiveRecord::Migration +class CreateStructuredErrorAttributes < ActiveRecord::Migration[4.2] def change create_table :structured_error_attributes do |t| t.belongs_to :structured_error diff --git a/db/migrate/20170711170456_add_description_and_hint_to_error_template.rb b/db/migrate/20170711170456_add_description_and_hint_to_error_template.rb index 62cbee95..11d1985f 100644 --- a/db/migrate/20170711170456_add_description_and_hint_to_error_template.rb +++ b/db/migrate/20170711170456_add_description_and_hint_to_error_template.rb @@ -1,4 +1,4 @@ -class AddDescriptionAndHintToErrorTemplate < ActiveRecord::Migration +class AddDescriptionAndHintToErrorTemplate < ActiveRecord::Migration[4.2] def change add_column :error_templates, :description, :text add_column :error_templates, :hint, :text diff --git a/db/migrate/20170711170928_change_error_template_attribute_relationship_to_n_to_m.rb b/db/migrate/20170711170928_change_error_template_attribute_relationship_to_n_to_m.rb index d10fbda2..32f3a304 100644 --- a/db/migrate/20170711170928_change_error_template_attribute_relationship_to_n_to_m.rb +++ b/db/migrate/20170711170928_change_error_template_attribute_relationship_to_n_to_m.rb @@ -1,4 +1,4 @@ -class ChangeErrorTemplateAttributeRelationshipToNToM < ActiveRecord::Migration +class ChangeErrorTemplateAttributeRelationshipToNToM < ActiveRecord::Migration[4.2] def change remove_belongs_to :error_template_attributes, :error_template create_join_table :error_templates, :error_template_attributes diff --git a/db/migrate/20170719133351_add_match_to_structured_error_attribute.rb b/db/migrate/20170719133351_add_match_to_structured_error_attribute.rb index 7ec3ccc0..51d868ab 100644 --- a/db/migrate/20170719133351_add_match_to_structured_error_attribute.rb +++ b/db/migrate/20170719133351_add_match_to_structured_error_attribute.rb @@ -1,4 +1,4 @@ -class AddMatchToStructuredErrorAttribute < ActiveRecord::Migration +class AddMatchToStructuredErrorAttribute < ActiveRecord::Migration[4.2] def change add_column :structured_error_attributes, :match, :boolean end diff --git a/db/migrate/20170830083601_add_cause_to_testruns.rb b/db/migrate/20170830083601_add_cause_to_testruns.rb index f9a859c4..d737c029 100644 --- a/db/migrate/20170830083601_add_cause_to_testruns.rb +++ b/db/migrate/20170830083601_add_cause_to_testruns.rb @@ -1,4 +1,4 @@ -class AddCauseToTestruns < ActiveRecord::Migration +class AddCauseToTestruns < ActiveRecord::Migration[4.2] def up add_column :testruns, :cause, :string Testrun.reset_column_information diff --git a/db/migrate/20170906124500_create_subscriptions.rb b/db/migrate/20170906124500_create_subscriptions.rb index 5dba42ab..83adc2d7 100644 --- a/db/migrate/20170906124500_create_subscriptions.rb +++ b/db/migrate/20170906124500_create_subscriptions.rb @@ -1,4 +1,4 @@ -class CreateSubscriptions < ActiveRecord::Migration +class CreateSubscriptions < ActiveRecord::Migration[4.2] def change create_table :subscriptions do |t| t.belongs_to :user, polymorphic: true diff --git a/db/migrate/20170913054203_rename_subscription_type.rb b/db/migrate/20170913054203_rename_subscription_type.rb index 76417921..e380bb07 100644 --- a/db/migrate/20170913054203_rename_subscription_type.rb +++ b/db/migrate/20170913054203_rename_subscription_type.rb @@ -1,4 +1,4 @@ -class RenameSubscriptionType < ActiveRecord::Migration +class RenameSubscriptionType < ActiveRecord::Migration[4.2] def change rename_column :subscriptions, :type, :subscription_type end diff --git a/db/migrate/20170920145852_add_deleted_to_subscription.rb b/db/migrate/20170920145852_add_deleted_to_subscription.rb index eb1d47c4..6c071b3a 100644 --- a/db/migrate/20170920145852_add_deleted_to_subscription.rb +++ b/db/migrate/20170920145852_add_deleted_to_subscription.rb @@ -1,4 +1,4 @@ -class AddDeletedToSubscription < ActiveRecord::Migration +class AddDeletedToSubscription < ActiveRecord::Migration[4.2] def change add_column :subscriptions, :deleted, :boolean end diff --git a/db/migrate/20171002131135_remove_expected_working_time.rb b/db/migrate/20171002131135_remove_expected_working_time.rb index eb4bbcb4..b9d6edd3 100644 --- a/db/migrate/20171002131135_remove_expected_working_time.rb +++ b/db/migrate/20171002131135_remove_expected_working_time.rb @@ -1,4 +1,4 @@ -class RemoveExpectedWorkingTime < ActiveRecord::Migration +class RemoveExpectedWorkingTime < ActiveRecord::Migration[4.2] def change remove_column :exercises, :expected_worktime_seconds end diff --git a/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb b/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb index 2aad7e28..d9816951 100644 --- a/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb +++ b/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb @@ -1,4 +1,4 @@ -class AddAnomalyDetectionFlagToExerciseCollection < ActiveRecord::Migration +class AddAnomalyDetectionFlagToExerciseCollection < ActiveRecord::Migration[4.2] def change add_column :exercise_collections, :use_anomaly_detection, :boolean, :default => false end diff --git a/db/migrate/20171120153705_add_timestamps_to_user_exercise_feedbacks.rb b/db/migrate/20171120153705_add_timestamps_to_user_exercise_feedbacks.rb index 4529d527..7f3bb0c7 100644 --- a/db/migrate/20171120153705_add_timestamps_to_user_exercise_feedbacks.rb +++ b/db/migrate/20171120153705_add_timestamps_to_user_exercise_feedbacks.rb @@ -1,4 +1,4 @@ -class AddTimestampsToUserExerciseFeedbacks < ActiveRecord::Migration +class AddTimestampsToUserExerciseFeedbacks < ActiveRecord::Migration[4.2] def up add_column :user_exercise_feedbacks, :created_at, :datetime, null: false, default: Time.now add_column :user_exercise_feedbacks, :updated_at, :datetime, null: false, default: Time.now diff --git a/db/migrate/20171122124222_add_index_to_exercises.rb b/db/migrate/20171122124222_add_index_to_exercises.rb index cf1f4674..d02e13bd 100644 --- a/db/migrate/20171122124222_add_index_to_exercises.rb +++ b/db/migrate/20171122124222_add_index_to_exercises.rb @@ -1,4 +1,4 @@ -class AddIndexToExercises < ActiveRecord::Migration +class AddIndexToExercises < ActiveRecord::Migration[4.2] def change add_index :exercises, :id end diff --git a/db/migrate/20171210172208_add_user_to_exercise_collection.rb b/db/migrate/20171210172208_add_user_to_exercise_collection.rb index 6dee1adf..6b63120a 100644 --- a/db/migrate/20171210172208_add_user_to_exercise_collection.rb +++ b/db/migrate/20171210172208_add_user_to_exercise_collection.rb @@ -1,4 +1,4 @@ -class AddUserToExerciseCollection < ActiveRecord::Migration +class AddUserToExerciseCollection < ActiveRecord::Migration[4.2] def change add_reference :exercise_collections, :user, polymorphic: true, index: true end diff --git a/db/migrate/20180130101645_add_submission_to_structured_errors.rb b/db/migrate/20180130101645_add_submission_to_structured_errors.rb index 3f7d2a5e..0f6ccec6 100644 --- a/db/migrate/20180130101645_add_submission_to_structured_errors.rb +++ b/db/migrate/20180130101645_add_submission_to_structured_errors.rb @@ -1,4 +1,4 @@ -class AddSubmissionToStructuredErrors < ActiveRecord::Migration +class AddSubmissionToStructuredErrors < ActiveRecord::Migration[4.2] def change add_reference :structured_errors, :submission, index: true end diff --git a/db/migrate/20180130172021_add_reached_full_score_to_request_for_comment.rb b/db/migrate/20180130172021_add_reached_full_score_to_request_for_comment.rb index c29919fd..651ff184 100644 --- a/db/migrate/20180130172021_add_reached_full_score_to_request_for_comment.rb +++ b/db/migrate/20180130172021_add_reached_full_score_to_request_for_comment.rb @@ -1,4 +1,4 @@ -class AddReachedFullScoreToRequestForComment < ActiveRecord::Migration +class AddReachedFullScoreToRequestForComment < ActiveRecord::Migration[4.2] def up add_column :request_for_comments, :full_score_reached, :boolean, default: false RequestForComment.find_each { |rfc| diff --git a/db/migrate/20180202132034_add_times_featured_to_request_for_comments.rb b/db/migrate/20180202132034_add_times_featured_to_request_for_comments.rb index 348292af..53194328 100644 --- a/db/migrate/20180202132034_add_times_featured_to_request_for_comments.rb +++ b/db/migrate/20180202132034_add_times_featured_to_request_for_comments.rb @@ -1,4 +1,4 @@ -class AddTimesFeaturedToRequestForComments < ActiveRecord::Migration +class AddTimesFeaturedToRequestForComments < ActiveRecord::Migration[4.2] def change add_column :request_for_comments, :times_featured, :integer, default: 0 end diff --git a/db/migrate/20180222145909_fix_timestamps_on_feedback.rb b/db/migrate/20180222145909_fix_timestamps_on_feedback.rb index f07372c7..32909752 100644 --- a/db/migrate/20180222145909_fix_timestamps_on_feedback.rb +++ b/db/migrate/20180222145909_fix_timestamps_on_feedback.rb @@ -1,4 +1,4 @@ -class FixTimestampsOnFeedback < ActiveRecord::Migration +class FixTimestampsOnFeedback < ActiveRecord::Migration[4.2] def up change_column_default(:user_exercise_feedbacks, :created_at, nil) change_column_default(:user_exercise_feedbacks, :updated_at, nil) diff --git a/db/migrate/20180226131340_create_anomaly_notifications.rb b/db/migrate/20180226131340_create_anomaly_notifications.rb index 5de3dbe4..c7f4e104 100644 --- a/db/migrate/20180226131340_create_anomaly_notifications.rb +++ b/db/migrate/20180226131340_create_anomaly_notifications.rb @@ -1,4 +1,4 @@ -class CreateAnomalyNotifications < ActiveRecord::Migration +class CreateAnomalyNotifications < ActiveRecord::Migration[4.2] def change create_table :anomaly_notifications do |t| t.belongs_to :user, polymorphic: true, index: true diff --git a/db/migrate/20180515110030_remove_file_id_from_structured_errors.rb b/db/migrate/20180515110030_remove_file_id_from_structured_errors.rb index d5465ccd..c0cd23d1 100644 --- a/db/migrate/20180515110030_remove_file_id_from_structured_errors.rb +++ b/db/migrate/20180515110030_remove_file_id_from_structured_errors.rb @@ -1,4 +1,4 @@ -class RemoveFileIdFromStructuredErrors < ActiveRecord::Migration +class RemoveFileIdFromStructuredErrors < ActiveRecord::Migration[4.2] def change remove_column :structured_errors, :file_id end diff --git a/db/migrate/20180703125302_create_exercise_collection_items.rb b/db/migrate/20180703125302_create_exercise_collection_items.rb index c881c8a5..aa172c62 100644 --- a/db/migrate/20180703125302_create_exercise_collection_items.rb +++ b/db/migrate/20180703125302_create_exercise_collection_items.rb @@ -1,4 +1,4 @@ -class CreateExerciseCollectionItems < ActiveRecord::Migration +class CreateExerciseCollectionItems < ActiveRecord::Migration[4.2] def up rename_table :exercise_collections_exercises, :exercise_collection_items add_column :exercise_collection_items, :position, :integer, default: 0, null: false diff --git a/db/migrate/20180814145059_create_events.rb b/db/migrate/20180814145059_create_events.rb index b6bc8745..5d1eb5e1 100644 --- a/db/migrate/20180814145059_create_events.rb +++ b/db/migrate/20180814145059_create_events.rb @@ -1,4 +1,4 @@ -class CreateEvents < ActiveRecord::Migration +class CreateEvents < ActiveRecord::Migration[4.2] def change create_table :events do |t| t.string :type diff --git a/db/migrate/20180814154055_rename_events_type_to_category.rb b/db/migrate/20180814154055_rename_events_type_to_category.rb index f97200c8..9bfe9d0b 100644 --- a/db/migrate/20180814154055_rename_events_type_to_category.rb +++ b/db/migrate/20180814154055_rename_events_type_to_category.rb @@ -1,4 +1,4 @@ -class RenameEventsTypeToCategory < ActiveRecord::Migration +class RenameEventsTypeToCategory < ActiveRecord::Migration[4.2] def change rename_column :events, :type, :category end diff --git a/db/migrate/20180815115351_remove_event_indices.rb b/db/migrate/20180815115351_remove_event_indices.rb index 2be20c1d..fdf7959d 100644 --- a/db/migrate/20180815115351_remove_event_indices.rb +++ b/db/migrate/20180815115351_remove_event_indices.rb @@ -1,4 +1,4 @@ -class RemoveEventIndices < ActiveRecord::Migration +class RemoveEventIndices < ActiveRecord::Migration[4.2] def change remove_index :events, [:user_type, :user_id] remove_index :events, :exercise_id diff --git a/db/migrate/20180823135317_add_index_for_testrun_submission_id.rb b/db/migrate/20180823135317_add_index_for_testrun_submission_id.rb index d0511dc9..8394660c 100644 --- a/db/migrate/20180823135317_add_index_for_testrun_submission_id.rb +++ b/db/migrate/20180823135317_add_index_for_testrun_submission_id.rb @@ -1,4 +1,4 @@ -class AddIndexForTestrunSubmissionId < ActiveRecord::Migration +class AddIndexForTestrunSubmissionId < ActiveRecord::Migration[4.2] def change add_index :testruns, :submission_id end diff --git a/db/migrate/20180904115948_add_index_for_lti_parameters_external_user_id.rb b/db/migrate/20180904115948_add_index_for_lti_parameters_external_user_id.rb index 5d0ecd46..e18f9c73 100644 --- a/db/migrate/20180904115948_add_index_for_lti_parameters_external_user_id.rb +++ b/db/migrate/20180904115948_add_index_for_lti_parameters_external_user_id.rb @@ -1,4 +1,4 @@ -class AddIndexForLtiParametersExternalUserId < ActiveRecord::Migration +class AddIndexForLtiParametersExternalUserId < ActiveRecord::Migration[4.2] def change add_index :lti_parameters, :external_users_id end