From 6fb6cac89c16b13e6143365f0ec2b435abfae246 Mon Sep 17 00:00:00 2001 From: "Steven R. Baker" Date: Mon, 13 May 2019 18:42:57 +0200 Subject: [PATCH] Add Rails version to the migrations. --- db/migrate/001_create_tracks_db.rb | 2 +- db/migrate/002_add_user_id.rb | 2 +- db/migrate/003_created_at.rb | 2 +- db/migrate/004_notes.rb | 2 +- db/migrate/005_add_project_description.rb | 2 +- db/migrate/006_add_preferences_to_user_table.rb | 2 +- db/migrate/007_add_sessions_table.rb | 2 +- db/migrate/008_add_subclass_attr_to_todos.rb | 2 +- db/migrate/009_add_user_pref_refresh.rb | 2 +- db/migrate/010_add_first_and_last_name_to_user.rb | 2 +- db/migrate/011_pref_to_show_hide_sidebar_items.rb | 2 +- db/migrate/012_add_preferences_model.rb | 2 +- db/migrate/013_convert_preferences.rb | 2 +- db/migrate/014_convert_project_to_state_machine.rb | 2 +- db/migrate/015_add_verbose_action_descriptors_preference.rb | 2 +- db/migrate/016_add_user_auth_type.rb | 2 +- db/migrate/017_add_open_id_tables.rb | 2 +- db/migrate/018_add_user_open_id_url.rb | 2 +- db/migrate/019_convert_todo_to_state_machine.rb | 2 +- db/migrate/020_pref_to_show_hidden_projects_in_sidebar.rb | 2 +- db/migrate/021_add_time_zone_preference.rb | 2 +- db/migrate/022_add_indices.rb | 2 +- db/migrate/023_index_on_user_login.rb | 2 +- db/migrate/024_add_find_by_name_indices.rb | 2 +- db/migrate/025_add_tag_support.rb | 2 +- db/migrate/026_add_project_timestamps.rb | 2 +- db/migrate/027_add_context_timestamps.rb | 2 +- db/migrate/028_add_show_project_on_todo_done_preference.rb | 2 +- db/migrate/029_add_title_date_format_preference.rb | 2 +- db/migrate/030_set_nil_timestamps.rb | 2 +- db/migrate/031_add_default_context_to_project.rb | 2 +- db/migrate/032_add_mobile_todos_per_page_preference.rb | 2 +- db/migrate/033_add_remember_me_to_user.rb | 2 +- db/migrate/034_rename_word_to_token.rb | 2 +- db/migrate/035_update_open_id_urls.rb | 2 +- db/migrate/036_add_project_completed_at_column.rb | 2 +- db/migrate/037_add_index_to_notes.rb | 2 +- .../038_projects_contexts_remove_not_null_from_position.rb | 2 +- db/migrate/039_create_recurring_todos.rb | 2 +- db/migrate/040_add_several_indexes.rb | 2 +- db/migrate/041_add_sms_to_preference.rb | 2 +- db/migrate/042_change_dates_to_datetimes.rb | 2 +- db/migrate/043_add_updated_at_to_todos.rb | 2 +- db/migrate/044_upgrade_open_id.rb | 2 +- db/migrate/045_remove_user_from_taggings.rb | 2 +- db/migrate/046_fix_incorrectly_hidden_todos.rb | 2 +- db/migrate/20090301154745_add_default_tags_to_project.rb | 2 +- db/migrate/20090516000646_add_todo_dependencies.rb | 2 +- .../20090531111711_add_show_always_to_recurring_todo.rb | 2 +- db/migrate/20100502162317_add_index_to_todo_state.rb | 4 ++-- db/migrate/20110104200112_add_locale_to_preference.rb | 2 +- db/migrate/20110526192008_adapt_to_new_aasm.rb | 2 +- .../20110621082432_make_old_recurring_todos_validate.rb | 2 +- db/migrate/20110727073510_change_crypted_password_length.rb | 2 +- db/migrate/20110915100000_add_last_reviewed_to_project.rb | 2 +- db/migrate/20110915100001_add_next_review_preferences.rb | 2 +- db/migrate/20120409105058_add_indices_to_dependency_table.rb | 2 +- db/migrate/20120412072508_add_rendered_notes.rb | 2 +- db/migrate/20120718110127_create_tolk_tables.rb | 4 ++-- db/migrate/20121223144702_no_default_admin_email.rb | 2 +- db/migrate/20130227205845_add_state_to_context.rb | 2 +- db/migrate/20150209233951_rename_occurences_to_occurrences.rb | 2 +- db/migrate/20150413194512_remove_rendered_notes.rb | 2 +- db/migrate/20150805144100_create_attachments.rb | 2 +- .../20160131233303_remove_project_hidden_state_from_todos.rb | 4 ++-- 65 files changed, 68 insertions(+), 68 deletions(-) diff --git a/db/migrate/001_create_tracks_db.rb b/db/migrate/001_create_tracks_db.rb index 6d6fa9e2..3cc9373b 100644 --- a/db/migrate/001_create_tracks_db.rb +++ b/db/migrate/001_create_tracks_db.rb @@ -1,5 +1,5 @@ # Verision 1.0.3 database -class CreateTracksDb < ActiveRecord::Migration +class CreateTracksDb < ActiveRecord::Migration[5.2] def self.up create_table :contexts do |t| t.column :name, :string, :null => false diff --git a/db/migrate/002_add_user_id.rb b/db/migrate/002_add_user_id.rb index 335c9813..6e42504f 100644 --- a/db/migrate/002_add_user_id.rb +++ b/db/migrate/002_add_user_id.rb @@ -1,4 +1,4 @@ -class AddUserId < ActiveRecord::Migration +class AddUserId < ActiveRecord::Migration[5.2] class Project < ActiveRecord::Base; end class Context < ActiveRecord::Base; end diff --git a/db/migrate/003_created_at.rb b/db/migrate/003_created_at.rb index f841ebec..f3083b2e 100644 --- a/db/migrate/003_created_at.rb +++ b/db/migrate/003_created_at.rb @@ -1,4 +1,4 @@ -class CreatedAt < ActiveRecord::Migration +class CreatedAt < ActiveRecord::Migration[5.2] # Current bug in Rails that prevents rename_column working in SQLite # if the column names use symbols instead of strings. # diff --git a/db/migrate/004_notes.rb b/db/migrate/004_notes.rb index 2765f4a6..89745617 100644 --- a/db/migrate/004_notes.rb +++ b/db/migrate/004_notes.rb @@ -1,4 +1,4 @@ -class Notes < ActiveRecord::Migration +class Notes < ActiveRecord::Migration[5.2] def self.up create_table :notes do |t| t.column :user_id, :integer, :null => false diff --git a/db/migrate/005_add_project_description.rb b/db/migrate/005_add_project_description.rb index 9aeff951..9f682e4e 100644 --- a/db/migrate/005_add_project_description.rb +++ b/db/migrate/005_add_project_description.rb @@ -1,4 +1,4 @@ -class AddProjectDescription < ActiveRecord::Migration +class AddProjectDescription < ActiveRecord::Migration[5.2] def self.up add_column :projects, :description, :text end diff --git a/db/migrate/006_add_preferences_to_user_table.rb b/db/migrate/006_add_preferences_to_user_table.rb index 68e18a41..c7a9c1e4 100644 --- a/db/migrate/006_add_preferences_to_user_table.rb +++ b/db/migrate/006_add_preferences_to_user_table.rb @@ -1,4 +1,4 @@ -class AddPreferencesToUserTable < ActiveRecord::Migration +class AddPreferencesToUserTable < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base; end diff --git a/db/migrate/007_add_sessions_table.rb b/db/migrate/007_add_sessions_table.rb index 4f727ce0..e8066417 100644 --- a/db/migrate/007_add_sessions_table.rb +++ b/db/migrate/007_add_sessions_table.rb @@ -1,4 +1,4 @@ -class AddSessionsTable < ActiveRecord::Migration +class AddSessionsTable < ActiveRecord::Migration[5.2] def self.up create_table :sessions do |t| t.column :session_id, :string diff --git a/db/migrate/008_add_subclass_attr_to_todos.rb b/db/migrate/008_add_subclass_attr_to_todos.rb index ff29f25f..4818a595 100644 --- a/db/migrate/008_add_subclass_attr_to_todos.rb +++ b/db/migrate/008_add_subclass_attr_to_todos.rb @@ -1,4 +1,4 @@ -class AddSubclassAttrToTodos < ActiveRecord::Migration +class AddSubclassAttrToTodos < ActiveRecord::Migration[5.2] class Todo < ActiveRecord::Base; end class Immediate < Todo; end diff --git a/db/migrate/009_add_user_pref_refresh.rb b/db/migrate/009_add_user_pref_refresh.rb index 293b1421..9219ebf6 100644 --- a/db/migrate/009_add_user_pref_refresh.rb +++ b/db/migrate/009_add_user_pref_refresh.rb @@ -1,4 +1,4 @@ -class AddUserPrefRefresh < ActiveRecord::Migration +class AddUserPrefRefresh < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base; serialize :preferences; end diff --git a/db/migrate/010_add_first_and_last_name_to_user.rb b/db/migrate/010_add_first_and_last_name_to_user.rb index eee01a6f..b2a6dbd1 100644 --- a/db/migrate/010_add_first_and_last_name_to_user.rb +++ b/db/migrate/010_add_first_and_last_name_to_user.rb @@ -1,4 +1,4 @@ -class AddFirstAndLastNameToUser < ActiveRecord::Migration +class AddFirstAndLastNameToUser < ActiveRecord::Migration[5.2] def self.up add_column :users, :first_name, :string add_column :users, :last_name, :string diff --git a/db/migrate/011_pref_to_show_hide_sidebar_items.rb b/db/migrate/011_pref_to_show_hide_sidebar_items.rb index 4dc103e0..f237de2b 100644 --- a/db/migrate/011_pref_to_show_hide_sidebar_items.rb +++ b/db/migrate/011_pref_to_show_hide_sidebar_items.rb @@ -1,4 +1,4 @@ -class PrefToShowHideSidebarItems < ActiveRecord::Migration +class PrefToShowHideSidebarItems < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base; serialize :preferences; end diff --git a/db/migrate/012_add_preferences_model.rb b/db/migrate/012_add_preferences_model.rb index 075ef489..95ab91d4 100644 --- a/db/migrate/012_add_preferences_model.rb +++ b/db/migrate/012_add_preferences_model.rb @@ -1,4 +1,4 @@ -class AddPreferencesModel < ActiveRecord::Migration +class AddPreferencesModel < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base; serialize :preferences; end diff --git a/db/migrate/013_convert_preferences.rb b/db/migrate/013_convert_preferences.rb index a963be85..396f7aed 100644 --- a/db/migrate/013_convert_preferences.rb +++ b/db/migrate/013_convert_preferences.rb @@ -1,4 +1,4 @@ -class ConvertPreferences < ActiveRecord::Migration +class ConvertPreferences < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base; has_one :preference; serialize :preferences; end diff --git a/db/migrate/014_convert_project_to_state_machine.rb b/db/migrate/014_convert_project_to_state_machine.rb index 8e5c4f4f..049c7560 100644 --- a/db/migrate/014_convert_project_to_state_machine.rb +++ b/db/migrate/014_convert_project_to_state_machine.rb @@ -1,4 +1,4 @@ -class ConvertProjectToStateMachine < ActiveRecord::Migration +class ConvertProjectToStateMachine < ActiveRecord::Migration[5.2] class Project < ActiveRecord::Base; end diff --git a/db/migrate/015_add_verbose_action_descriptors_preference.rb b/db/migrate/015_add_verbose_action_descriptors_preference.rb index 2944f8d9..e0b9a280 100644 --- a/db/migrate/015_add_verbose_action_descriptors_preference.rb +++ b/db/migrate/015_add_verbose_action_descriptors_preference.rb @@ -1,4 +1,4 @@ -class AddVerboseActionDescriptorsPreference < ActiveRecord::Migration +class AddVerboseActionDescriptorsPreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :verbose_action_descriptors, :boolean, :default => false, :null => false end diff --git a/db/migrate/016_add_user_auth_type.rb b/db/migrate/016_add_user_auth_type.rb index 5c3efe01..0fd26459 100644 --- a/db/migrate/016_add_user_auth_type.rb +++ b/db/migrate/016_add_user_auth_type.rb @@ -1,4 +1,4 @@ -class AddUserAuthType < ActiveRecord::Migration +class AddUserAuthType < ActiveRecord::Migration[5.2] def self.up add_column :users, :auth_type, :string, :default => 'database', :null => false end diff --git a/db/migrate/017_add_open_id_tables.rb b/db/migrate/017_add_open_id_tables.rb index bbc20af5..6d99fc26 100644 --- a/db/migrate/017_add_open_id_tables.rb +++ b/db/migrate/017_add_open_id_tables.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -class AddOpenIdTables < ActiveRecord::Migration +class AddOpenIdTables < ActiveRecord::Migration[5.2] def self.up create_table "open_id_associations", :force => true do |t| t.column "server_url", :binary diff --git a/db/migrate/018_add_user_open_id_url.rb b/db/migrate/018_add_user_open_id_url.rb index 71c06100..3324a68a 100644 --- a/db/migrate/018_add_user_open_id_url.rb +++ b/db/migrate/018_add_user_open_id_url.rb @@ -1,4 +1,4 @@ -class AddUserOpenIdUrl < ActiveRecord::Migration +class AddUserOpenIdUrl < ActiveRecord::Migration[5.2] def self.up add_column :users, :open_id_url, :string end diff --git a/db/migrate/019_convert_todo_to_state_machine.rb b/db/migrate/019_convert_todo_to_state_machine.rb index 775a4525..8b9ba84a 100644 --- a/db/migrate/019_convert_todo_to_state_machine.rb +++ b/db/migrate/019_convert_todo_to_state_machine.rb @@ -1,4 +1,4 @@ -class ConvertTodoToStateMachine < ActiveRecord::Migration +class ConvertTodoToStateMachine < ActiveRecord::Migration[5.2] class Todo < ActiveRecord::Base; belongs_to :project; end class Immediate < Todo; end diff --git a/db/migrate/020_pref_to_show_hidden_projects_in_sidebar.rb b/db/migrate/020_pref_to_show_hidden_projects_in_sidebar.rb index ea346a90..e1b07ced 100644 --- a/db/migrate/020_pref_to_show_hidden_projects_in_sidebar.rb +++ b/db/migrate/020_pref_to_show_hidden_projects_in_sidebar.rb @@ -1,4 +1,4 @@ -class PrefToShowHiddenProjectsInSidebar < ActiveRecord::Migration +class PrefToShowHiddenProjectsInSidebar < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :show_hidden_projects_in_sidebar, :boolean, :default => true, :null => false diff --git a/db/migrate/021_add_time_zone_preference.rb b/db/migrate/021_add_time_zone_preference.rb index 63a9f16a..66596573 100644 --- a/db/migrate/021_add_time_zone_preference.rb +++ b/db/migrate/021_add_time_zone_preference.rb @@ -1,4 +1,4 @@ -class AddTimeZonePreference < ActiveRecord::Migration +class AddTimeZonePreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :time_zone, :string, :limit => 255, :default => 'London', :null => false diff --git a/db/migrate/022_add_indices.rb b/db/migrate/022_add_indices.rb index 45319b5d..294d59ab 100644 --- a/db/migrate/022_add_indices.rb +++ b/db/migrate/022_add_indices.rb @@ -1,4 +1,4 @@ -class AddIndices < ActiveRecord::Migration +class AddIndices < ActiveRecord::Migration[5.2] def self.up add_index :todos, [:user_id, :state] add_index :todos, [:user_id, :project_id] diff --git a/db/migrate/023_index_on_user_login.rb b/db/migrate/023_index_on_user_login.rb index affebc79..129627b2 100644 --- a/db/migrate/023_index_on_user_login.rb +++ b/db/migrate/023_index_on_user_login.rb @@ -1,4 +1,4 @@ -class IndexOnUserLogin < ActiveRecord::Migration +class IndexOnUserLogin < ActiveRecord::Migration[5.2] def self.up add_index :users, :login end diff --git a/db/migrate/024_add_find_by_name_indices.rb b/db/migrate/024_add_find_by_name_indices.rb index 44c2a12b..0b88f603 100644 --- a/db/migrate/024_add_find_by_name_indices.rb +++ b/db/migrate/024_add_find_by_name_indices.rb @@ -1,4 +1,4 @@ -class AddFindByNameIndices < ActiveRecord::Migration +class AddFindByNameIndices < ActiveRecord::Migration[5.2] def self.up add_index :projects, [:user_id, :name] add_index :contexts, [:user_id, :name] diff --git a/db/migrate/025_add_tag_support.rb b/db/migrate/025_add_tag_support.rb index 76c32ec0..34046a6c 100644 --- a/db/migrate/025_add_tag_support.rb +++ b/db/migrate/025_add_tag_support.rb @@ -1,4 +1,4 @@ -class AddTagSupport < ActiveRecord::Migration +class AddTagSupport < ActiveRecord::Migration[5.2] def self.up create_table :taggings do |t| t.column :taggable_id, :integer diff --git a/db/migrate/026_add_project_timestamps.rb b/db/migrate/026_add_project_timestamps.rb index ebbfb0a9..6c92855a 100644 --- a/db/migrate/026_add_project_timestamps.rb +++ b/db/migrate/026_add_project_timestamps.rb @@ -1,4 +1,4 @@ -class AddProjectTimestamps < ActiveRecord::Migration +class AddProjectTimestamps < ActiveRecord::Migration[5.2] def self.up add_column :projects, :created_at, :timestamp add_column :projects, :updated_at, :timestamp diff --git a/db/migrate/027_add_context_timestamps.rb b/db/migrate/027_add_context_timestamps.rb index 8c2d8201..99a077c7 100644 --- a/db/migrate/027_add_context_timestamps.rb +++ b/db/migrate/027_add_context_timestamps.rb @@ -1,4 +1,4 @@ -class AddContextTimestamps < ActiveRecord::Migration +class AddContextTimestamps < ActiveRecord::Migration[5.2] def self.up add_column :contexts, :created_at, :timestamp diff --git a/db/migrate/028_add_show_project_on_todo_done_preference.rb b/db/migrate/028_add_show_project_on_todo_done_preference.rb index 48ca8bca..75cacc44 100644 --- a/db/migrate/028_add_show_project_on_todo_done_preference.rb +++ b/db/migrate/028_add_show_project_on_todo_done_preference.rb @@ -1,4 +1,4 @@ -class AddShowProjectOnTodoDonePreference < ActiveRecord::Migration +class AddShowProjectOnTodoDonePreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :show_project_on_todo_done, :boolean, :default => false, :null => false end diff --git a/db/migrate/029_add_title_date_format_preference.rb b/db/migrate/029_add_title_date_format_preference.rb index ac86fde6..99841bc2 100644 --- a/db/migrate/029_add_title_date_format_preference.rb +++ b/db/migrate/029_add_title_date_format_preference.rb @@ -1,4 +1,4 @@ -class AddTitleDateFormatPreference < ActiveRecord::Migration +class AddTitleDateFormatPreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :title_date_format, :string, :limit => 255, :default => '%A, %d %B %Y', :null => false end diff --git a/db/migrate/030_set_nil_timestamps.rb b/db/migrate/030_set_nil_timestamps.rb index 4a605f31..6fa0de1f 100644 --- a/db/migrate/030_set_nil_timestamps.rb +++ b/db/migrate/030_set_nil_timestamps.rb @@ -1,4 +1,4 @@ -class SetNilTimestamps < ActiveRecord::Migration +class SetNilTimestamps < ActiveRecord::Migration[5.2] class Project < ActiveRecord::Base; end diff --git a/db/migrate/031_add_default_context_to_project.rb b/db/migrate/031_add_default_context_to_project.rb index 5d371861..55896a7b 100644 --- a/db/migrate/031_add_default_context_to_project.rb +++ b/db/migrate/031_add_default_context_to_project.rb @@ -1,4 +1,4 @@ -class AddDefaultContextToProject < ActiveRecord::Migration +class AddDefaultContextToProject < ActiveRecord::Migration[5.2] def self.up add_column :projects, :default_context_id, :integer end diff --git a/db/migrate/032_add_mobile_todos_per_page_preference.rb b/db/migrate/032_add_mobile_todos_per_page_preference.rb index 976d67c9..d4e5a33e 100644 --- a/db/migrate/032_add_mobile_todos_per_page_preference.rb +++ b/db/migrate/032_add_mobile_todos_per_page_preference.rb @@ -1,4 +1,4 @@ -class AddMobileTodosPerPagePreference < ActiveRecord::Migration +class AddMobileTodosPerPagePreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :mobile_todos_per_page, :integer, :null => false, :default => 6 end diff --git a/db/migrate/033_add_remember_me_to_user.rb b/db/migrate/033_add_remember_me_to_user.rb index afbf68ed..59912330 100644 --- a/db/migrate/033_add_remember_me_to_user.rb +++ b/db/migrate/033_add_remember_me_to_user.rb @@ -1,4 +1,4 @@ -class AddRememberMeToUser < ActiveRecord::Migration +class AddRememberMeToUser < ActiveRecord::Migration[5.2] def self.up rename_column :users, 'password', 'crypted_password' #bug in sqlite requires column names as strings add_column :users, :remember_token, :string diff --git a/db/migrate/034_rename_word_to_token.rb b/db/migrate/034_rename_word_to_token.rb index 9e9e10c6..2be9f64d 100644 --- a/db/migrate/034_rename_word_to_token.rb +++ b/db/migrate/034_rename_word_to_token.rb @@ -1,4 +1,4 @@ -class RenameWordToToken < ActiveRecord::Migration +class RenameWordToToken < ActiveRecord::Migration[5.2] def self.up rename_column :users, 'word', 'token' #bug in sqlite requires column names as strings end diff --git a/db/migrate/035_update_open_id_urls.rb b/db/migrate/035_update_open_id_urls.rb index 7da779f2..152eae19 100644 --- a/db/migrate/035_update_open_id_urls.rb +++ b/db/migrate/035_update_open_id_urls.rb @@ -1,4 +1,4 @@ -class UpdateOpenIdUrls < ActiveRecord::Migration +class UpdateOpenIdUrls < ActiveRecord::Migration[5.2] class User < ActiveRecord::Base diff --git a/db/migrate/036_add_project_completed_at_column.rb b/db/migrate/036_add_project_completed_at_column.rb index de13b180..f8d1fe35 100644 --- a/db/migrate/036_add_project_completed_at_column.rb +++ b/db/migrate/036_add_project_completed_at_column.rb @@ -1,4 +1,4 @@ -class AddProjectCompletedAtColumn < ActiveRecord::Migration +class AddProjectCompletedAtColumn < ActiveRecord::Migration[5.2] class Project < ActiveRecord::Base; end diff --git a/db/migrate/037_add_index_to_notes.rb b/db/migrate/037_add_index_to_notes.rb index f21cc105..de837196 100644 --- a/db/migrate/037_add_index_to_notes.rb +++ b/db/migrate/037_add_index_to_notes.rb @@ -1,4 +1,4 @@ -class AddIndexToNotes < ActiveRecord::Migration +class AddIndexToNotes < ActiveRecord::Migration[5.2] def self.up add_index :notes, [:project_id] add_index :notes, [:user_id] diff --git a/db/migrate/038_projects_contexts_remove_not_null_from_position.rb b/db/migrate/038_projects_contexts_remove_not_null_from_position.rb index 12e1b745..af167857 100644 --- a/db/migrate/038_projects_contexts_remove_not_null_from_position.rb +++ b/db/migrate/038_projects_contexts_remove_not_null_from_position.rb @@ -1,4 +1,4 @@ -class ProjectsContextsRemoveNotNullFromPosition < ActiveRecord::Migration +class ProjectsContextsRemoveNotNullFromPosition < ActiveRecord::Migration[5.2] def self.up change_column :projects, :position, :integer, {:null => true, :default => nil} change_column :contexts, :position, :integer, {:null => true, :default => nil} diff --git a/db/migrate/039_create_recurring_todos.rb b/db/migrate/039_create_recurring_todos.rb index ca02b163..36739ace 100644 --- a/db/migrate/039_create_recurring_todos.rb +++ b/db/migrate/039_create_recurring_todos.rb @@ -1,4 +1,4 @@ -class CreateRecurringTodos < ActiveRecord::Migration +class CreateRecurringTodos < ActiveRecord::Migration[5.2] def self.up create_table :recurring_todos do |t| # todo data diff --git a/db/migrate/040_add_several_indexes.rb b/db/migrate/040_add_several_indexes.rb index 2c840b11..f8f8f590 100644 --- a/db/migrate/040_add_several_indexes.rb +++ b/db/migrate/040_add_several_indexes.rb @@ -1,4 +1,4 @@ -class AddSeveralIndexes < ActiveRecord::Migration +class AddSeveralIndexes < ActiveRecord::Migration[5.2] def self.up add_index :taggings, [:taggable_id, :taggable_type] add_index :taggings, :tag_id diff --git a/db/migrate/041_add_sms_to_preference.rb b/db/migrate/041_add_sms_to_preference.rb index 61f7e05a..6d47247b 100644 --- a/db/migrate/041_add_sms_to_preference.rb +++ b/db/migrate/041_add_sms_to_preference.rb @@ -1,4 +1,4 @@ -class AddSmsToPreference < ActiveRecord::Migration +class AddSmsToPreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :sms_email, :string add_column :preferences, :sms_context_id, :integer diff --git a/db/migrate/042_change_dates_to_datetimes.rb b/db/migrate/042_change_dates_to_datetimes.rb index 9c0b2ef6..511df942 100644 --- a/db/migrate/042_change_dates_to_datetimes.rb +++ b/db/migrate/042_change_dates_to_datetimes.rb @@ -1,4 +1,4 @@ -class ChangeDatesToDatetimes < ActiveRecord::Migration +class ChangeDatesToDatetimes < ActiveRecord::Migration[5.2] def self.up change_column :todos, :show_from, :datetime change_column :todos, :due, :datetime diff --git a/db/migrate/043_add_updated_at_to_todos.rb b/db/migrate/043_add_updated_at_to_todos.rb index abf8dc97..fae126db 100644 --- a/db/migrate/043_add_updated_at_to_todos.rb +++ b/db/migrate/043_add_updated_at_to_todos.rb @@ -1,4 +1,4 @@ -class AddUpdatedAtToTodos < ActiveRecord::Migration +class AddUpdatedAtToTodos < ActiveRecord::Migration[5.2] def self.up add_column :todos, :updated_at, :timestamp execute 'update todos set updated_at = created_at where completed_at IS NULL' diff --git a/db/migrate/044_upgrade_open_id.rb b/db/migrate/044_upgrade_open_id.rb index 74307df9..cbe79064 100644 --- a/db/migrate/044_upgrade_open_id.rb +++ b/db/migrate/044_upgrade_open_id.rb @@ -1,4 +1,4 @@ -class UpgradeOpenId < ActiveRecord::Migration +class UpgradeOpenId < ActiveRecord::Migration[5.2] def self.up create_table :open_id_authentication_associations, :force => true do |t| t.integer :issued, :lifetime diff --git a/db/migrate/045_remove_user_from_taggings.rb b/db/migrate/045_remove_user_from_taggings.rb index 0c23bec3..b2dcf1f9 100644 --- a/db/migrate/045_remove_user_from_taggings.rb +++ b/db/migrate/045_remove_user_from_taggings.rb @@ -1,4 +1,4 @@ -class RemoveUserFromTaggings < ActiveRecord::Migration +class RemoveUserFromTaggings < ActiveRecord::Migration[5.2] def self.up remove_index :taggings, [:tag_id, :taggable_id, :taggable_type] remove_index :tags, :name diff --git a/db/migrate/046_fix_incorrectly_hidden_todos.rb b/db/migrate/046_fix_incorrectly_hidden_todos.rb index fca599f7..10276869 100644 --- a/db/migrate/046_fix_incorrectly_hidden_todos.rb +++ b/db/migrate/046_fix_incorrectly_hidden_todos.rb @@ -1,4 +1,4 @@ -class FixIncorrectlyHiddenTodos < ActiveRecord::Migration +class FixIncorrectlyHiddenTodos < ActiveRecord::Migration[5.2] def self.up hidden_todos_without_project = Todo.where(:state => 'project_hidden', :project_id => nil) diff --git a/db/migrate/20090301154745_add_default_tags_to_project.rb b/db/migrate/20090301154745_add_default_tags_to_project.rb index 378edbd7..382b11a9 100644 --- a/db/migrate/20090301154745_add_default_tags_to_project.rb +++ b/db/migrate/20090301154745_add_default_tags_to_project.rb @@ -1,4 +1,4 @@ -class AddDefaultTagsToProject < ActiveRecord::Migration +class AddDefaultTagsToProject < ActiveRecord::Migration[5.2] def self.up add_column :projects, :default_tags, :string end diff --git a/db/migrate/20090516000646_add_todo_dependencies.rb b/db/migrate/20090516000646_add_todo_dependencies.rb index 2ca58dae..8344fb70 100644 --- a/db/migrate/20090516000646_add_todo_dependencies.rb +++ b/db/migrate/20090516000646_add_todo_dependencies.rb @@ -1,4 +1,4 @@ -class AddTodoDependencies < ActiveRecord::Migration +class AddTodoDependencies < ActiveRecord::Migration[5.2] def self.up create_table :dependencies do |t| t.integer :successor_id, :null => false diff --git a/db/migrate/20090531111711_add_show_always_to_recurring_todo.rb b/db/migrate/20090531111711_add_show_always_to_recurring_todo.rb index 210f6084..3ac5990a 100644 --- a/db/migrate/20090531111711_add_show_always_to_recurring_todo.rb +++ b/db/migrate/20090531111711_add_show_always_to_recurring_todo.rb @@ -1,4 +1,4 @@ -class AddShowAlwaysToRecurringTodo < ActiveRecord::Migration +class AddShowAlwaysToRecurringTodo < ActiveRecord::Migration[5.2] def self.up add_column :recurring_todos, :show_always, :boolean recurring_todos = RecurringTodo.all diff --git a/db/migrate/20100502162317_add_index_to_todo_state.rb b/db/migrate/20100502162317_add_index_to_todo_state.rb index 6e3d01bf..e95b3510 100644 --- a/db/migrate/20100502162317_add_index_to_todo_state.rb +++ b/db/migrate/20100502162317_add_index_to_todo_state.rb @@ -1,4 +1,4 @@ -class AddIndexToTodoState < ActiveRecord::Migration +class AddIndexToTodoState < ActiveRecord::Migration[5.2] def self.up add_index :todos, :state end @@ -6,4 +6,4 @@ class AddIndexToTodoState < ActiveRecord::Migration def self.down remove_index :todos, :state end -end \ No newline at end of file +end diff --git a/db/migrate/20110104200112_add_locale_to_preference.rb b/db/migrate/20110104200112_add_locale_to_preference.rb index 05525e1e..ad35ca5e 100644 --- a/db/migrate/20110104200112_add_locale_to_preference.rb +++ b/db/migrate/20110104200112_add_locale_to_preference.rb @@ -1,4 +1,4 @@ -class AddLocaleToPreference < ActiveRecord::Migration +class AddLocaleToPreference < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :locale, :string end diff --git a/db/migrate/20110526192008_adapt_to_new_aasm.rb b/db/migrate/20110526192008_adapt_to_new_aasm.rb index 206a6ec6..6e3dcb28 100644 --- a/db/migrate/20110526192008_adapt_to_new_aasm.rb +++ b/db/migrate/20110526192008_adapt_to_new_aasm.rb @@ -1,4 +1,4 @@ -class AdaptToNewAasm < ActiveRecord::Migration +class AdaptToNewAasm < ActiveRecord::Migration[5.2] def self.up change_column_default :todos, :state, nil change_column_default :projects, :state, nil diff --git a/db/migrate/20110621082432_make_old_recurring_todos_validate.rb b/db/migrate/20110621082432_make_old_recurring_todos_validate.rb index 1c9d9dc2..8b4ca082 100644 --- a/db/migrate/20110621082432_make_old_recurring_todos_validate.rb +++ b/db/migrate/20110621082432_make_old_recurring_todos_validate.rb @@ -1,4 +1,4 @@ -class MakeOldRecurringTodosValidate < ActiveRecord::Migration +class MakeOldRecurringTodosValidate < ActiveRecord::Migration[5.2] def self.up RecurringTodo.all.each do |rt| # show_always may not be nil diff --git a/db/migrate/20110727073510_change_crypted_password_length.rb b/db/migrate/20110727073510_change_crypted_password_length.rb index 9bd2c639..63f2a5b6 100644 --- a/db/migrate/20110727073510_change_crypted_password_length.rb +++ b/db/migrate/20110727073510_change_crypted_password_length.rb @@ -1,4 +1,4 @@ -class ChangeCryptedPasswordLength < ActiveRecord::Migration +class ChangeCryptedPasswordLength < ActiveRecord::Migration[5.2] def self.up change_column 'users', 'crypted_password', :string, :limit => 60 end diff --git a/db/migrate/20110915100000_add_last_reviewed_to_project.rb b/db/migrate/20110915100000_add_last_reviewed_to_project.rb index ec81a5f2..f72142a0 100644 --- a/db/migrate/20110915100000_add_last_reviewed_to_project.rb +++ b/db/migrate/20110915100000_add_last_reviewed_to_project.rb @@ -1,4 +1,4 @@ -class AddLastReviewedToProject < ActiveRecord::Migration +class AddLastReviewedToProject < ActiveRecord::Migration[5.2] def self.up add_column :projects, :last_reviewed, :timestamp diff --git a/db/migrate/20110915100001_add_next_review_preferences.rb b/db/migrate/20110915100001_add_next_review_preferences.rb index 3d48bdd1..cc91779a 100644 --- a/db/migrate/20110915100001_add_next_review_preferences.rb +++ b/db/migrate/20110915100001_add_next_review_preferences.rb @@ -1,4 +1,4 @@ -class AddNextReviewPreferences < ActiveRecord::Migration +class AddNextReviewPreferences < ActiveRecord::Migration[5.2] def self.up add_column :preferences, :review_period, :integer, :default => 14, :null => false diff --git a/db/migrate/20120409105058_add_indices_to_dependency_table.rb b/db/migrate/20120409105058_add_indices_to_dependency_table.rb index 74418b25..bad95d08 100644 --- a/db/migrate/20120409105058_add_indices_to_dependency_table.rb +++ b/db/migrate/20120409105058_add_indices_to_dependency_table.rb @@ -1,4 +1,4 @@ -class AddIndicesToDependencyTable < ActiveRecord::Migration +class AddIndicesToDependencyTable < ActiveRecord::Migration[5.2] def self.up add_index :dependencies, :successor_id add_index :dependencies, :predecessor_id diff --git a/db/migrate/20120412072508_add_rendered_notes.rb b/db/migrate/20120412072508_add_rendered_notes.rb index 6b7ade60..957fbe3a 100644 --- a/db/migrate/20120412072508_add_rendered_notes.rb +++ b/db/migrate/20120412072508_add_rendered_notes.rb @@ -1,4 +1,4 @@ -class AddRenderedNotes < ActiveRecord::Migration +class AddRenderedNotes < ActiveRecord::Migration[5.2] def self.up add_column :todos, 'rendered_notes', :text diff --git a/db/migrate/20120718110127_create_tolk_tables.rb b/db/migrate/20120718110127_create_tolk_tables.rb index 160000ab..0397f3cd 100644 --- a/db/migrate/20120718110127_create_tolk_tables.rb +++ b/db/migrate/20120718110127_create_tolk_tables.rb @@ -1,4 +1,4 @@ -class CreateTolkTables < ActiveRecord::Migration +class CreateTolkTables < ActiveRecord::Migration[5.2] def self.up create_table :tolk_locales do |t| t.string :name @@ -35,4 +35,4 @@ class CreateTolkTables < ActiveRecord::Migration drop_table :tolk_phrases drop_table :tolk_locales end -end \ No newline at end of file +end diff --git a/db/migrate/20121223144702_no_default_admin_email.rb b/db/migrate/20121223144702_no_default_admin_email.rb index dedc0cb2..8b6f6d3b 100644 --- a/db/migrate/20121223144702_no_default_admin_email.rb +++ b/db/migrate/20121223144702_no_default_admin_email.rb @@ -1,4 +1,4 @@ -class NoDefaultAdminEmail < ActiveRecord::Migration +class NoDefaultAdminEmail < ActiveRecord::Migration[5.2] def up remove_column :preferences, :admin_email end diff --git a/db/migrate/20130227205845_add_state_to_context.rb b/db/migrate/20130227205845_add_state_to_context.rb index 98bbd97e..915aa056 100644 --- a/db/migrate/20130227205845_add_state_to_context.rb +++ b/db/migrate/20130227205845_add_state_to_context.rb @@ -1,4 +1,4 @@ -class AddStateToContext < ActiveRecord::Migration +class AddStateToContext < ActiveRecord::Migration[5.2] class Context < ActiveRecord::Base end diff --git a/db/migrate/20150209233951_rename_occurences_to_occurrences.rb b/db/migrate/20150209233951_rename_occurences_to_occurrences.rb index 7b348402..f265eede 100644 --- a/db/migrate/20150209233951_rename_occurences_to_occurrences.rb +++ b/db/migrate/20150209233951_rename_occurences_to_occurrences.rb @@ -1,4 +1,4 @@ -class RenameOccurencesToOccurrences < ActiveRecord::Migration +class RenameOccurencesToOccurrences < ActiveRecord::Migration[5.2] def change rename_column :recurring_todos, :number_of_occurences, :number_of_occurrences rename_column :recurring_todos, :occurences_count, :occurrences_count diff --git a/db/migrate/20150413194512_remove_rendered_notes.rb b/db/migrate/20150413194512_remove_rendered_notes.rb index 5a763c21..621d3c9c 100644 --- a/db/migrate/20150413194512_remove_rendered_notes.rb +++ b/db/migrate/20150413194512_remove_rendered_notes.rb @@ -1,4 +1,4 @@ -class RemoveRenderedNotes < ActiveRecord::Migration +class RemoveRenderedNotes < ActiveRecord::Migration[5.2] def self.up remove_column :todos, 'rendered_notes' end diff --git a/db/migrate/20150805144100_create_attachments.rb b/db/migrate/20150805144100_create_attachments.rb index 277cfb19..21040cb7 100644 --- a/db/migrate/20150805144100_create_attachments.rb +++ b/db/migrate/20150805144100_create_attachments.rb @@ -1,4 +1,4 @@ -class CreateAttachments < ActiveRecord::Migration +class CreateAttachments < ActiveRecord::Migration[5.2] def change create_table :attachments do |t| t.references :todo, index: true diff --git a/db/migrate/20160131233303_remove_project_hidden_state_from_todos.rb b/db/migrate/20160131233303_remove_project_hidden_state_from_todos.rb index d1df844d..710524db 100644 --- a/db/migrate/20160131233303_remove_project_hidden_state_from_todos.rb +++ b/db/migrate/20160131233303_remove_project_hidden_state_from_todos.rb @@ -1,4 +1,4 @@ -class RemoveProjectHiddenStateFromTodos < ActiveRecord::Migration +class RemoveProjectHiddenStateFromTodos < ActiveRecord::Migration[5.2] class Todo < ActiveRecord::Base has_many :successor_dependencies, :foreign_key => 'successor_id', :class_name => 'Dependency' belongs_to :project @@ -39,4 +39,4 @@ class RemoveProjectHiddenStateFromTodos < ActiveRecord::Migration end false end -end \ No newline at end of file +end