diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-15 01:32:57 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-15 01:32:57 +0000 |
commit | 5861160ffc350a97b5ff41465fbd7e03008853e4 (patch) | |
tree | ad260a758b0c88c42debd6b567d6cd382d27ae42 /db/migrate | |
parent | 9f4a4be01a48eb2cbb30f8786aee3b9fec830f19 (diff) | |
download | redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.tar.gz redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.zip |
Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.
git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
286 files changed, 582 insertions, 10 deletions
diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb index 1cd569403..dde3a29c4 100644 --- a/db/migrate/001_setup.rb +++ b/db/migrate/001_setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + # Redmine - project management software # Copyright (C) 2006 Jean-Philippe Lang # diff --git a/db/migrate/002_issue_move.rb b/db/migrate/002_issue_move.rb index d5966f04e..82d9391ef 100644 --- a/db/migrate/002_issue_move.rb +++ b/db/migrate/002_issue_move.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class IssueMove < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/003_issue_add_note.rb b/db/migrate/003_issue_add_note.rb index 9f899a80f..9fb45c9da 100644 --- a/db/migrate/003_issue_add_note.rb +++ b/db/migrate/003_issue_add_note.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class IssueAddNote < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/004_export_pdf.rb b/db/migrate/004_export_pdf.rb index ac7ef2627..d29165eef 100644 --- a/db/migrate/004_export_pdf.rb +++ b/db/migrate/004_export_pdf.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ExportPdf < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/005_issue_start_date.rb b/db/migrate/005_issue_start_date.rb index 93decfb35..983c9a4ae 100644 --- a/db/migrate/005_issue_start_date.rb +++ b/db/migrate/005_issue_start_date.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class IssueStartDate < ActiveRecord::Migration[4.2] def self.up add_column :issues, :start_date, :date diff --git a/db/migrate/006_calendar_and_activity.rb b/db/migrate/006_calendar_and_activity.rb index 3ff204c62..bd38e23b8 100644 --- a/db/migrate/006_calendar_and_activity.rb +++ b/db/migrate/006_calendar_and_activity.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CalendarAndActivity < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/007_create_journals.rb b/db/migrate/007_create_journals.rb index 0d1201406..7062f2cae 100644 --- a/db/migrate/007_create_journals.rb +++ b/db/migrate/007_create_journals.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateJournals < ActiveRecord::Migration[4.2] # model removed, but needed for data migration diff --git a/db/migrate/008_create_user_preferences.rb b/db/migrate/008_create_user_preferences.rb index b782b179e..a0e78b570 100644 --- a/db/migrate/008_create_user_preferences.rb +++ b/db/migrate/008_create_user_preferences.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateUserPreferences < ActiveRecord::Migration[4.2] def self.up create_table :user_preferences do |t| diff --git a/db/migrate/009_add_hide_mail_pref.rb b/db/migrate/009_add_hide_mail_pref.rb index 8dd3399c9..69bab179d 100644 --- a/db/migrate/009_add_hide_mail_pref.rb +++ b/db/migrate/009_add_hide_mail_pref.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddHideMailPref < ActiveRecord::Migration[4.2] def self.up add_column :user_preferences, :hide_mail, :boolean, :default => false diff --git a/db/migrate/010_create_comments.rb b/db/migrate/010_create_comments.rb index c711c748a..f4e898fe4 100644 --- a/db/migrate/010_create_comments.rb +++ b/db/migrate/010_create_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateComments < ActiveRecord::Migration[4.2] def self.up create_table :comments do |t| diff --git a/db/migrate/011_add_news_comments_count.rb b/db/migrate/011_add_news_comments_count.rb index 01a283345..a4b285a92 100644 --- a/db/migrate/011_add_news_comments_count.rb +++ b/db/migrate/011_add_news_comments_count.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddNewsCommentsCount < ActiveRecord::Migration[4.2] def self.up add_column :news, :comments_count, :integer, :default => 0, :null => false diff --git a/db/migrate/012_add_comments_permissions.rb b/db/migrate/012_add_comments_permissions.rb index e82fb89e9..dbe2eca1d 100644 --- a/db/migrate/012_add_comments_permissions.rb +++ b/db/migrate/012_add_comments_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCommentsPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/013_create_queries.rb b/db/migrate/013_create_queries.rb index 578472590..2a5eee5b9 100644 --- a/db/migrate/013_create_queries.rb +++ b/db/migrate/013_create_queries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateQueries < ActiveRecord::Migration[4.2] def self.up create_table :queries, :force => true do |t| diff --git a/db/migrate/014_add_queries_permissions.rb b/db/migrate/014_add_queries_permissions.rb index 07f974900..c93a308e4 100644 --- a/db/migrate/014_add_queries_permissions.rb +++ b/db/migrate/014_add_queries_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/015_create_repositories.rb b/db/migrate/015_create_repositories.rb index e8e92bdb9..7bd1cdb81 100644 --- a/db/migrate/015_create_repositories.rb +++ b/db/migrate/015_create_repositories.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateRepositories < ActiveRecord::Migration[4.2] def self.up create_table :repositories, :force => true do |t| diff --git a/db/migrate/016_add_repositories_permissions.rb b/db/migrate/016_add_repositories_permissions.rb index 217df3cae..31367405c 100644 --- a/db/migrate/016_add_repositories_permissions.rb +++ b/db/migrate/016_add_repositories_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/017_create_settings.rb b/db/migrate/017_create_settings.rb index 777e36ed6..8ba233f0f 100644 --- a/db/migrate/017_create_settings.rb +++ b/db/migrate/017_create_settings.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateSettings < ActiveRecord::Migration[4.2] def self.up create_table :settings, :force => true do |t| diff --git a/db/migrate/018_set_doc_and_files_notifications.rb b/db/migrate/018_set_doc_and_files_notifications.rb index aca687385..9e7f007b9 100644 --- a/db/migrate/018_set_doc_and_files_notifications.rb +++ b/db/migrate/018_set_doc_and_files_notifications.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/019_add_issue_status_position.rb b/db/migrate/019_add_issue_status_position.rb index 1536bdd0a..e4a067cb7 100644 --- a/db/migrate/019_add_issue_status_position.rb +++ b/db/migrate/019_add_issue_status_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssueStatusPosition < ActiveRecord::Migration[4.2] def self.up add_column :issue_statuses, :position, :integer, :default => 1 diff --git a/db/migrate/020_add_role_position.rb b/db/migrate/020_add_role_position.rb index 39a678e1a..7781b12d4 100644 --- a/db/migrate/020_add_role_position.rb +++ b/db/migrate/020_add_role_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolePosition < ActiveRecord::Migration[4.2] def self.up add_column :roles, :position, :integer, :default => 1 diff --git a/db/migrate/021_add_tracker_position.rb b/db/migrate/021_add_tracker_position.rb index dca65d109..133e8d1e7 100644 --- a/db/migrate/021_add_tracker_position.rb +++ b/db/migrate/021_add_tracker_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTrackerPosition < ActiveRecord::Migration[4.2] def self.up add_column :trackers, :position, :integer, :default => 1 diff --git a/db/migrate/022_serialize_possibles_values.rb b/db/migrate/022_serialize_possibles_values.rb index 66905c9c6..b82a4d2d1 100644 --- a/db/migrate/022_serialize_possibles_values.rb +++ b/db/migrate/022_serialize_possibles_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SerializePossiblesValues < ActiveRecord::Migration[4.2] def self.up CustomField.all.each do |field| diff --git a/db/migrate/023_add_tracker_is_in_roadmap.rb b/db/migrate/023_add_tracker_is_in_roadmap.rb index 727b1a803..4093b7e4f 100644 --- a/db/migrate/023_add_tracker_is_in_roadmap.rb +++ b/db/migrate/023_add_tracker_is_in_roadmap.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2] def self.up add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false diff --git a/db/migrate/024_add_roadmap_permission.rb b/db/migrate/024_add_roadmap_permission.rb index 72aeaeded..dedf72146 100644 --- a/db/migrate/024_add_roadmap_permission.rb +++ b/db/migrate/024_add_roadmap_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRoadmapPermission < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/025_add_search_permission.rb b/db/migrate/025_add_search_permission.rb index 782eeb286..40f2b982a 100644 --- a/db/migrate/025_add_search_permission.rb +++ b/db/migrate/025_add_search_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddSearchPermission < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/026_add_repository_login_and_password.rb b/db/migrate/026_add_repository_login_and_password.rb index e26c2333c..06bab50c1 100644 --- a/db/migrate/026_add_repository_login_and_password.rb +++ b/db/migrate/026_add_repository_login_and_password.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :login, :string, :limit => 60, :default => "" diff --git a/db/migrate/027_create_wikis.rb b/db/migrate/027_create_wikis.rb index c40481488..47642427d 100644 --- a/db/migrate/027_create_wikis.rb +++ b/db/migrate/027_create_wikis.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateWikis < ActiveRecord::Migration[4.2] def self.up create_table :wikis do |t| diff --git a/db/migrate/028_create_wiki_pages.rb b/db/migrate/028_create_wiki_pages.rb index 95fd6b59b..e72947203 100644 --- a/db/migrate/028_create_wiki_pages.rb +++ b/db/migrate/028_create_wiki_pages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateWikiPages < ActiveRecord::Migration[4.2] def self.up create_table :wiki_pages do |t| diff --git a/db/migrate/029_create_wiki_contents.rb b/db/migrate/029_create_wiki_contents.rb index 662488405..600b70109 100644 --- a/db/migrate/029_create_wiki_contents.rb +++ b/db/migrate/029_create_wiki_contents.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateWikiContents < ActiveRecord::Migration[4.2] def self.up create_table :wiki_contents do |t| diff --git a/db/migrate/030_add_projects_feeds_permissions.rb b/db/migrate/030_add_projects_feeds_permissions.rb index 29e31ab14..a2b5cd20a 100644 --- a/db/migrate/030_add_projects_feeds_permissions.rb +++ b/db/migrate/030_add_projects_feeds_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/031_add_repository_root_url.rb b/db/migrate/031_add_repository_root_url.rb index 96ac761e4..2269b09f7 100644 --- a/db/migrate/031_add_repository_root_url.rb +++ b/db/migrate/031_add_repository_root_url.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoryRootUrl < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :root_url, :string, :limit => 255, :default => "" diff --git a/db/migrate/032_create_time_entries.rb b/db/migrate/032_create_time_entries.rb index 0e93dca23..7b0f5974e 100644 --- a/db/migrate/032_create_time_entries.rb +++ b/db/migrate/032_create_time_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateTimeEntries < ActiveRecord::Migration[4.2] def self.up create_table :time_entries do |t| diff --git a/db/migrate/033_add_timelog_permissions.rb b/db/migrate/033_add_timelog_permissions.rb index 42889f1e7..f86e4fbb0 100644 --- a/db/migrate/033_add_timelog_permissions.rb +++ b/db/migrate/033_add_timelog_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTimelogPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/034_create_changesets.rb b/db/migrate/034_create_changesets.rb index e0180a041..8e87bb8bc 100644 --- a/db/migrate/034_create_changesets.rb +++ b/db/migrate/034_create_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateChangesets < ActiveRecord::Migration[4.2] def self.up create_table :changesets do |t| diff --git a/db/migrate/035_create_changes.rb b/db/migrate/035_create_changes.rb index ed62e4c31..6ec26beb5 100644 --- a/db/migrate/035_create_changes.rb +++ b/db/migrate/035_create_changes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateChanges < ActiveRecord::Migration[4.2] def self.up create_table :changes do |t| diff --git a/db/migrate/036_add_changeset_commit_date.rb b/db/migrate/036_add_changeset_commit_date.rb index 90ce52466..b0918483d 100644 --- a/db/migrate/036_add_changeset_commit_date.rb +++ b/db/migrate/036_add_changeset_commit_date.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddChangesetCommitDate < ActiveRecord::Migration[4.2] def self.up add_column :changesets, :commit_date, :date diff --git a/db/migrate/037_add_project_identifier.rb b/db/migrate/037_add_project_identifier.rb index de796d6d1..e8485ccbf 100644 --- a/db/migrate/037_add_project_identifier.rb +++ b/db/migrate/037_add_project_identifier.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectIdentifier < ActiveRecord::Migration[4.2] def self.up add_column :projects, :identifier, :string, :limit => 20 diff --git a/db/migrate/038_add_custom_field_is_filter.rb b/db/migrate/038_add_custom_field_is_filter.rb index a57c1b036..2f2965600 100644 --- a/db/migrate/038_add_custom_field_is_filter.rb +++ b/db/migrate/038_add_custom_field_is_filter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false diff --git a/db/migrate/039_create_watchers.rb b/db/migrate/039_create_watchers.rb index d14cea464..d37310e51 100644 --- a/db/migrate/039_create_watchers.rb +++ b/db/migrate/039_create_watchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateWatchers < ActiveRecord::Migration[4.2] def self.up create_table :watchers do |t| diff --git a/db/migrate/040_create_changesets_issues.rb b/db/migrate/040_create_changesets_issues.rb index d4aad0f01..204e056aa 100644 --- a/db/migrate/040_create_changesets_issues.rb +++ b/db/migrate/040_create_changesets_issues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateChangesetsIssues < ActiveRecord::Migration[4.2] def self.up create_table :changesets_issues, :id => false do |t| diff --git a/db/migrate/041_rename_comment_to_comments.rb b/db/migrate/041_rename_comment_to_comments.rb index 02391091a..8e2757304 100644 --- a/db/migrate/041_rename_comment_to_comments.rb +++ b/db/migrate/041_rename_comment_to_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RenameCommentToComments < ActiveRecord::Migration[4.2] def self.up rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"} diff --git a/db/migrate/042_create_issue_relations.rb b/db/migrate/042_create_issue_relations.rb index 98ad24fb0..29cb19efb 100644 --- a/db/migrate/042_create_issue_relations.rb +++ b/db/migrate/042_create_issue_relations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateIssueRelations < ActiveRecord::Migration[4.2] def self.up create_table :issue_relations do |t| diff --git a/db/migrate/043_add_relations_permissions.rb b/db/migrate/043_add_relations_permissions.rb index 7250606ed..1426501e1 100644 --- a/db/migrate/043_add_relations_permissions.rb +++ b/db/migrate/043_add_relations_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRelationsPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/044_set_language_length_to_five.rb b/db/migrate/044_set_language_length_to_five.rb index 1e600690f..775c19f3b 100644 --- a/db/migrate/044_set_language_length_to_five.rb +++ b/db/migrate/044_set_language_length_to_five.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SetLanguageLengthToFive < ActiveRecord::Migration[4.2] def self.up change_column :users, :language, :string, :limit => 5, :default => "" diff --git a/db/migrate/045_create_boards.rb b/db/migrate/045_create_boards.rb index 49b15edcc..694b3ebfa 100644 --- a/db/migrate/045_create_boards.rb +++ b/db/migrate/045_create_boards.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateBoards < ActiveRecord::Migration[4.2] def self.up create_table :boards do |t| diff --git a/db/migrate/046_create_messages.rb b/db/migrate/046_create_messages.rb index 99d39c8d3..895a5e879 100644 --- a/db/migrate/046_create_messages.rb +++ b/db/migrate/046_create_messages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateMessages < ActiveRecord::Migration[4.2] def self.up create_table :messages do |t| diff --git a/db/migrate/047_add_boards_permissions.rb b/db/migrate/047_add_boards_permissions.rb index cf7938e9f..15d91367e 100644 --- a/db/migrate/047_add_boards_permissions.rb +++ b/db/migrate/047_add_boards_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddBoardsPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/048_allow_null_version_effective_date.rb b/db/migrate/048_allow_null_version_effective_date.rb index 9cce1e3f6..66d23d14f 100644 --- a/db/migrate/048_allow_null_version_effective_date.rb +++ b/db/migrate/048_allow_null_version_effective_date.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2] def self.up change_column :versions, :effective_date, :date, :default => nil, :null => true diff --git a/db/migrate/049_add_wiki_destroy_page_permission.rb b/db/migrate/049_add_wiki_destroy_page_permission.rb index bbeb26d8d..8d8ea49c1 100644 --- a/db/migrate/049_add_wiki_destroy_page_permission.rb +++ b/db/migrate/049_add_wiki_destroy_page_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/050_add_wiki_attachments_permissions.rb b/db/migrate/050_add_wiki_attachments_permissions.rb index fd5f35891..a0d339b24 100644 --- a/db/migrate/050_add_wiki_attachments_permissions.rb +++ b/db/migrate/050_add_wiki_attachments_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/051_add_project_status.rb b/db/migrate/051_add_project_status.rb index e7ceade0b..1062f855c 100644 --- a/db/migrate/051_add_project_status.rb +++ b/db/migrate/051_add_project_status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectStatus < ActiveRecord::Migration[4.2] def self.up add_column :projects, :status, :integer, :default => 1, :null => false diff --git a/db/migrate/052_add_changes_revision.rb b/db/migrate/052_add_changes_revision.rb index e9b178480..54e8ab740 100644 --- a/db/migrate/052_add_changes_revision.rb +++ b/db/migrate/052_add_changes_revision.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddChangesRevision < ActiveRecord::Migration[4.2] def self.up add_column :changes, :revision, :string diff --git a/db/migrate/053_add_changes_branch.rb b/db/migrate/053_add_changes_branch.rb index d8dbcfd05..6b8e689cf 100644 --- a/db/migrate/053_add_changes_branch.rb +++ b/db/migrate/053_add_changes_branch.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddChangesBranch < ActiveRecord::Migration[4.2] def self.up add_column :changes, :branch, :string diff --git a/db/migrate/054_add_changesets_scmid.rb b/db/migrate/054_add_changesets_scmid.rb index 034facb4b..75e1e6df4 100644 --- a/db/migrate/054_add_changesets_scmid.rb +++ b/db/migrate/054_add_changesets_scmid.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddChangesetsScmid < ActiveRecord::Migration[4.2] def self.up add_column :changesets, :scmid, :string diff --git a/db/migrate/055_add_repositories_type.rb b/db/migrate/055_add_repositories_type.rb index 5ee43cb36..a9364be2c 100644 --- a/db/migrate/055_add_repositories_type.rb +++ b/db/migrate/055_add_repositories_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesType < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :type, :string diff --git a/db/migrate/056_add_repositories_changes_permission.rb b/db/migrate/056_add_repositories_changes_permission.rb index 71e23be29..42b7af7d0 100644 --- a/db/migrate/056_add_repositories_changes_permission.rb +++ b/db/migrate/056_add_repositories_changes_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesChangesPermission < ActiveRecord::Migration[4.2] # model removed class Permission < ActiveRecord::Base; end diff --git a/db/migrate/057_add_versions_wiki_page_title.rb b/db/migrate/057_add_versions_wiki_page_title.rb index cb2273598..816b8fd1c 100644 --- a/db/migrate/057_add_versions_wiki_page_title.rb +++ b/db/migrate/057_add_versions_wiki_page_title.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddVersionsWikiPageTitle < ActiveRecord::Migration[4.2] def self.up add_column :versions, :wiki_page_title, :string diff --git a/db/migrate/058_add_issue_categories_assigned_to_id.rb b/db/migrate/058_add_issue_categories_assigned_to_id.rb index d17afdc9d..b4f36c0c9 100644 --- a/db/migrate/058_add_issue_categories_assigned_to_id.rb +++ b/db/migrate/058_add_issue_categories_assigned_to_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssueCategoriesAssignedToId < ActiveRecord::Migration[4.2] def self.up add_column :issue_categories, :assigned_to_id, :integer diff --git a/db/migrate/059_add_roles_assignable.rb b/db/migrate/059_add_roles_assignable.rb index 6b4b3f9ca..e2704fb19 100644 --- a/db/migrate/059_add_roles_assignable.rb +++ b/db/migrate/059_add_roles_assignable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesAssignable < ActiveRecord::Migration[4.2] def self.up add_column :roles, :assignable, :boolean, :default => true diff --git a/db/migrate/060_change_changesets_committer_limit.rb b/db/migrate/060_change_changesets_committer_limit.rb index d8a03b8c8..151207433 100644 --- a/db/migrate/060_change_changesets_committer_limit.rb +++ b/db/migrate/060_change_changesets_committer_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeChangesetsCommitterLimit < ActiveRecord::Migration[4.2] def self.up change_column :changesets, :committer, :string, :limit => nil diff --git a/db/migrate/061_add_roles_builtin.rb b/db/migrate/061_add_roles_builtin.rb index 65124b02d..e0fc7cba6 100644 --- a/db/migrate/061_add_roles_builtin.rb +++ b/db/migrate/061_add_roles_builtin.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesBuiltin < ActiveRecord::Migration[4.2] def self.up add_column :roles, :builtin, :integer, :default => 0, :null => false diff --git a/db/migrate/062_insert_builtin_roles.rb b/db/migrate/062_insert_builtin_roles.rb index 07f902f04..19b940078 100644 --- a/db/migrate/062_insert_builtin_roles.rb +++ b/db/migrate/062_insert_builtin_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class InsertBuiltinRoles < ActiveRecord::Migration[4.2] def self.up Role.reset_column_information diff --git a/db/migrate/063_add_roles_permissions.rb b/db/migrate/063_add_roles_permissions.rb index a2626f82c..f0a5bc7c1 100644 --- a/db/migrate/063_add_roles_permissions.rb +++ b/db/migrate/063_add_roles_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesPermissions < ActiveRecord::Migration[4.2] def self.up add_column :roles, :permissions, :text diff --git a/db/migrate/064_drop_permissions.rb b/db/migrate/064_drop_permissions.rb index 6d39519fe..5388d5993 100644 --- a/db/migrate/064_drop_permissions.rb +++ b/db/migrate/064_drop_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class DropPermissions < ActiveRecord::Migration[4.2] def self.up drop_table :permissions diff --git a/db/migrate/065_add_settings_updated_on.rb b/db/migrate/065_add_settings_updated_on.rb index ab0b03a15..51956071c 100644 --- a/db/migrate/065_add_settings_updated_on.rb +++ b/db/migrate/065_add_settings_updated_on.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddSettingsUpdatedOn < ActiveRecord::Migration[4.2] def self.up add_column :settings, :updated_on, :timestamp diff --git a/db/migrate/066_add_custom_value_customized_index.rb b/db/migrate/066_add_custom_value_customized_index.rb index da4c72570..69919963a 100644 --- a/db/migrate/066_add_custom_value_customized_index.rb +++ b/db/migrate/066_add_custom_value_customized_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomValueCustomizedIndex < ActiveRecord::Migration[4.2] def self.up add_index :custom_values, [:customized_type, :customized_id], :name => :custom_values_customized diff --git a/db/migrate/067_create_wiki_redirects.rb b/db/migrate/067_create_wiki_redirects.rb index 54b1d5dbd..651536d18 100644 --- a/db/migrate/067_create_wiki_redirects.rb +++ b/db/migrate/067_create_wiki_redirects.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateWikiRedirects < ActiveRecord::Migration[4.2] def self.up create_table :wiki_redirects do |t| diff --git a/db/migrate/068_create_enabled_modules.rb b/db/migrate/068_create_enabled_modules.rb index c836be76b..38be04572 100644 --- a/db/migrate/068_create_enabled_modules.rb +++ b/db/migrate/068_create_enabled_modules.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateEnabledModules < ActiveRecord::Migration[4.2] def self.up create_table :enabled_modules do |t| diff --git a/db/migrate/069_add_issues_estimated_hours.rb b/db/migrate/069_add_issues_estimated_hours.rb index d651993e3..a2c7a5be0 100644 --- a/db/migrate/069_add_issues_estimated_hours.rb +++ b/db/migrate/069_add_issues_estimated_hours.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssuesEstimatedHours < ActiveRecord::Migration[4.2] def self.up add_column :issues, :estimated_hours, :float diff --git a/db/migrate/070_change_attachments_content_type_limit.rb b/db/migrate/070_change_attachments_content_type_limit.rb index ae9f7363a..13241a2dc 100644 --- a/db/migrate/070_change_attachments_content_type_limit.rb +++ b/db/migrate/070_change_attachments_content_type_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAttachmentsContentTypeLimit < ActiveRecord::Migration[4.2] def self.up change_column :attachments, :content_type, :string, :limit => nil diff --git a/db/migrate/071_add_queries_column_names.rb b/db/migrate/071_add_queries_column_names.rb index 5f6873afb..6a25a4e51 100644 --- a/db/migrate/071_add_queries_column_names.rb +++ b/db/migrate/071_add_queries_column_names.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesColumnNames < ActiveRecord::Migration[4.2] def self.up add_column :queries, :column_names, :text diff --git a/db/migrate/072_add_enumerations_position.rb b/db/migrate/072_add_enumerations_position.rb index 804ce0096..95ed89afd 100644 --- a/db/migrate/072_add_enumerations_position.rb +++ b/db/migrate/072_add_enumerations_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddEnumerationsPosition < ActiveRecord::Migration[4.2] def self.up add_column(:enumerations, :position, :integer, :default => 1) unless Enumeration.column_names.include?('position') diff --git a/db/migrate/073_add_enumerations_is_default.rb b/db/migrate/073_add_enumerations_is_default.rb index 269cbf35a..ff010ec83 100644 --- a/db/migrate/073_add_enumerations_is_default.rb +++ b/db/migrate/073_add_enumerations_is_default.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddEnumerationsIsDefault < ActiveRecord::Migration[4.2] def self.up add_column :enumerations, :is_default, :boolean, :default => false, :null => false diff --git a/db/migrate/074_add_auth_sources_tls.rb b/db/migrate/074_add_auth_sources_tls.rb index 298e39e6e..aa02e6cec 100644 --- a/db/migrate/074_add_auth_sources_tls.rb +++ b/db/migrate/074_add_auth_sources_tls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAuthSourcesTls < ActiveRecord::Migration[4.2] def self.up add_column :auth_sources, :tls, :boolean, :default => false, :null => false diff --git a/db/migrate/075_add_members_mail_notification.rb b/db/migrate/075_add_members_mail_notification.rb index 8722e95fd..ffcc31741 100644 --- a/db/migrate/075_add_members_mail_notification.rb +++ b/db/migrate/075_add_members_mail_notification.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMembersMailNotification < ActiveRecord::Migration[4.2] def self.up add_column :members, :mail_notification, :boolean, :default => false, :null => false diff --git a/db/migrate/076_allow_null_position.rb b/db/migrate/076_allow_null_position.rb index a5f396fcd..345601c21 100644 --- a/db/migrate/076_allow_null_position.rb +++ b/db/migrate/076_allow_null_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AllowNullPosition < ActiveRecord::Migration[4.2] def self.up Enumeration.reset_column_information diff --git a/db/migrate/077_remove_issue_statuses_html_color.rb b/db/migrate/077_remove_issue_statuses_html_color.rb index fdf64ce29..e7f3b3791 100644 --- a/db/migrate/077_remove_issue_statuses_html_color.rb +++ b/db/migrate/077_remove_issue_statuses_html_color.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2] def self.up remove_column :issue_statuses, :html_color diff --git a/db/migrate/078_add_custom_fields_position.rb b/db/migrate/078_add_custom_fields_position.rb index ebe84416b..c099559c4 100644 --- a/db/migrate/078_add_custom_fields_position.rb +++ b/db/migrate/078_add_custom_fields_position.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsPosition < ActiveRecord::Migration[4.2] def self.up add_column(:custom_fields, :position, :integer, :default => 1) diff --git a/db/migrate/079_add_user_preferences_time_zone.rb b/db/migrate/079_add_user_preferences_time_zone.rb index fd3ac2c6f..fd118f555 100644 --- a/db/migrate/079_add_user_preferences_time_zone.rb +++ b/db/migrate/079_add_user_preferences_time_zone.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUserPreferencesTimeZone < ActiveRecord::Migration[4.2] def self.up add_column :user_preferences, :time_zone, :string diff --git a/db/migrate/080_add_users_type.rb b/db/migrate/080_add_users_type.rb index 342a99583..5ed74c6b2 100644 --- a/db/migrate/080_add_users_type.rb +++ b/db/migrate/080_add_users_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUsersType < ActiveRecord::Migration[4.2] def self.up add_column :users, :type, :string diff --git a/db/migrate/081_create_projects_trackers.rb b/db/migrate/081_create_projects_trackers.rb index 8156e39a8..7075f13f1 100644 --- a/db/migrate/081_create_projects_trackers.rb +++ b/db/migrate/081_create_projects_trackers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateProjectsTrackers < ActiveRecord::Migration[4.2] def self.up create_table :projects_trackers, :id => false do |t| diff --git a/db/migrate/082_add_messages_locked.rb b/db/migrate/082_add_messages_locked.rb index c88533e9f..1f3db2018 100644 --- a/db/migrate/082_add_messages_locked.rb +++ b/db/migrate/082_add_messages_locked.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMessagesLocked < ActiveRecord::Migration[4.2] def self.up add_column :messages, :locked, :boolean, :default => false diff --git a/db/migrate/083_add_messages_sticky.rb b/db/migrate/083_add_messages_sticky.rb index aa6dde285..050999e32 100644 --- a/db/migrate/083_add_messages_sticky.rb +++ b/db/migrate/083_add_messages_sticky.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMessagesSticky < ActiveRecord::Migration[4.2] def self.up add_column :messages, :sticky, :integer, :default => 0 diff --git a/db/migrate/084_change_auth_sources_account_limit.rb b/db/migrate/084_change_auth_sources_account_limit.rb index 4e2870aa0..1bc027297 100644 --- a/db/migrate/084_change_auth_sources_account_limit.rb +++ b/db/migrate/084_change_auth_sources_account_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAuthSourcesAccountLimit < ActiveRecord::Migration[4.2] def self.up change_column :auth_sources, :account, :string, :limit => nil diff --git a/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb b/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb index 12c150440..b27d3677b 100644 --- a/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb +++ b/db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRoleTrackerOldStatusIndexToWorkflows < ActiveRecord::Migration[4.2] def self.up add_index :workflows, [:role_id, :tracker_id, :old_status_id], :name => :wkfs_role_tracker_old_status diff --git a/db/migrate/086_add_custom_fields_searchable.rb b/db/migrate/086_add_custom_fields_searchable.rb index 5ee187577..9b5323621 100644 --- a/db/migrate/086_add_custom_fields_searchable.rb +++ b/db/migrate/086_add_custom_fields_searchable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsSearchable < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :searchable, :boolean, :default => false diff --git a/db/migrate/087_change_projects_description_to_text.rb b/db/migrate/087_change_projects_description_to_text.rb index 0f1d8fe92..961e78a28 100644 --- a/db/migrate/087_change_projects_description_to_text.rb +++ b/db/migrate/087_change_projects_description_to_text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeProjectsDescriptionToText < ActiveRecord::Migration[4.2] def self.up change_column :projects, :description, :text, :null => true, :default => nil diff --git a/db/migrate/088_add_custom_fields_default_value.rb b/db/migrate/088_add_custom_fields_default_value.rb index 1148c0726..1db497328 100644 --- a/db/migrate/088_add_custom_fields_default_value.rb +++ b/db/migrate/088_add_custom_fields_default_value.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsDefaultValue < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :default_value, :text diff --git a/db/migrate/089_add_attachments_description.rb b/db/migrate/089_add_attachments_description.rb index f2a9666b6..fed25fe7b 100644 --- a/db/migrate/089_add_attachments_description.rb +++ b/db/migrate/089_add_attachments_description.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAttachmentsDescription < ActiveRecord::Migration[4.2] def self.up add_column :attachments, :description, :string diff --git a/db/migrate/090_change_versions_name_limit.rb b/db/migrate/090_change_versions_name_limit.rb index 5f34cd501..b7f4318a2 100644 --- a/db/migrate/090_change_versions_name_limit.rb +++ b/db/migrate/090_change_versions_name_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeVersionsNameLimit < ActiveRecord::Migration[4.2] def self.up change_column :versions, :name, :string, :limit => nil diff --git a/db/migrate/091_change_changesets_revision_to_string.rb b/db/migrate/091_change_changesets_revision_to_string.rb index f92f8f79e..50ad1a770 100644 --- a/db/migrate/091_change_changesets_revision_to_string.rb +++ b/db/migrate/091_change_changesets_revision_to_string.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeChangesetsRevisionToString < ActiveRecord::Migration[4.2] def self.up # Some backends (eg. SQLServer 2012) do not support changing the type diff --git a/db/migrate/092_change_changes_from_revision_to_string.rb b/db/migrate/092_change_changes_from_revision_to_string.rb index c91919cc0..3f3c983ea 100644 --- a/db/migrate/092_change_changes_from_revision_to_string.rb +++ b/db/migrate/092_change_changes_from_revision_to_string.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeChangesFromRevisionToString < ActiveRecord::Migration[4.2] def self.up change_column :changes, :from_revision, :string diff --git a/db/migrate/093_add_wiki_pages_protected.rb b/db/migrate/093_add_wiki_pages_protected.rb index 6ff72d8c5..a1e47e08d 100644 --- a/db/migrate/093_add_wiki_pages_protected.rb +++ b/db/migrate/093_add_wiki_pages_protected.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWikiPagesProtected < ActiveRecord::Migration[4.2] def self.up add_column :wiki_pages, :protected, :boolean, :default => false, :null => false diff --git a/db/migrate/094_change_projects_homepage_limit.rb b/db/migrate/094_change_projects_homepage_limit.rb index 950c53ede..dfaad1b5a 100644 --- a/db/migrate/094_change_projects_homepage_limit.rb +++ b/db/migrate/094_change_projects_homepage_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeProjectsHomepageLimit < ActiveRecord::Migration[4.2] def self.up change_column :projects, :homepage, :string, :limit => nil, :default => '' diff --git a/db/migrate/095_add_wiki_pages_parent_id.rb b/db/migrate/095_add_wiki_pages_parent_id.rb index 6aff1fb4e..1c71ed768 100644 --- a/db/migrate/095_add_wiki_pages_parent_id.rb +++ b/db/migrate/095_add_wiki_pages_parent_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWikiPagesParentId < ActiveRecord::Migration[4.2] def self.up add_column :wiki_pages, :parent_id, :integer, :default => nil diff --git a/db/migrate/096_add_commit_access_permission.rb b/db/migrate/096_add_commit_access_permission.rb index 9b5fc66e6..28a3499cf 100644 --- a/db/migrate/096_add_commit_access_permission.rb +++ b/db/migrate/096_add_commit_access_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCommitAccessPermission < ActiveRecord::Migration[4.2] def self.up Role.all.select { |r| not r.builtin? }.each do |r| diff --git a/db/migrate/097_add_view_wiki_edits_permission.rb b/db/migrate/097_add_view_wiki_edits_permission.rb index 1808f72ef..e26644fba 100644 --- a/db/migrate/097_add_view_wiki_edits_permission.rb +++ b/db/migrate/097_add_view_wiki_edits_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddViewWikiEditsPermission < ActiveRecord::Migration[4.2] def self.up Role.all.each do |r| diff --git a/db/migrate/098_set_topic_authors_as_watchers.rb b/db/migrate/098_set_topic_authors_as_watchers.rb index 979ae8edc..0474a4461 100644 --- a/db/migrate/098_set_topic_authors_as_watchers.rb +++ b/db/migrate/098_set_topic_authors_as_watchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SetTopicAuthorsAsWatchers < ActiveRecord::Migration[4.2] def self.up # Sets active users who created/replied a topic as watchers of the topic diff --git a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb index b016bfcb6..5246a2345 100644 --- a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb +++ b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration[4.2] def self.up Role.all.each do |r| diff --git a/db/migrate/100_add_changesets_user_id.rb b/db/migrate/100_add_changesets_user_id.rb index 8b722aec6..166605449 100644 --- a/db/migrate/100_add_changesets_user_id.rb +++ b/db/migrate/100_add_changesets_user_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddChangesetsUserId < ActiveRecord::Migration[4.2] def self.up add_column :changesets, :user_id, :integer, :default => nil diff --git a/db/migrate/101_populate_changesets_user_id.rb b/db/migrate/101_populate_changesets_user_id.rb index 7e7d81d4f..cf7fbae85 100644 --- a/db/migrate/101_populate_changesets_user_id.rb +++ b/db/migrate/101_populate_changesets_user_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateChangesetsUserId < ActiveRecord::Migration[4.2] def self.up committers = Changeset.connection.select_values("SELECT DISTINCT committer FROM #{Changeset.table_name}") diff --git a/db/migrate/102_add_custom_fields_editable.rb b/db/migrate/102_add_custom_fields_editable.rb index 28b73cc71..6ac3f1dec 100644 --- a/db/migrate/102_add_custom_fields_editable.rb +++ b/db/migrate/102_add_custom_fields_editable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsEditable < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :editable, :boolean, :default => true diff --git a/db/migrate/103_set_custom_fields_editable.rb b/db/migrate/103_set_custom_fields_editable.rb index c43846c3a..d8a38d168 100644 --- a/db/migrate/103_set_custom_fields_editable.rb +++ b/db/migrate/103_set_custom_fields_editable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SetCustomFieldsEditable < ActiveRecord::Migration[4.2] def self.up UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}") diff --git a/db/migrate/104_add_projects_lft_and_rgt.rb b/db/migrate/104_add_projects_lft_and_rgt.rb index 77569fc45..c3c90beff 100644 --- a/db/migrate/104_add_projects_lft_and_rgt.rb +++ b/db/migrate/104_add_projects_lft_and_rgt.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectsLftAndRgt < ActiveRecord::Migration[4.2] def self.up add_column :projects, :lft, :integer diff --git a/db/migrate/105_build_projects_tree.rb b/db/migrate/105_build_projects_tree.rb index 27ca3dfba..5238ab094 100644 --- a/db/migrate/105_build_projects_tree.rb +++ b/db/migrate/105_build_projects_tree.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class BuildProjectsTree < ActiveRecord::Migration[4.2] def self.up Project.rebuild_tree! diff --git a/db/migrate/106_remove_projects_projects_count.rb b/db/migrate/106_remove_projects_projects_count.rb index 4f14974da..d955bb80b 100644 --- a/db/migrate/106_remove_projects_projects_count.rb +++ b/db/migrate/106_remove_projects_projects_count.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveProjectsProjectsCount < ActiveRecord::Migration[4.2] def self.up remove_column :projects, :projects_count diff --git a/db/migrate/107_add_open_id_authentication_tables.rb b/db/migrate/107_add_open_id_authentication_tables.rb index 3d6d6e9b5..f513b6ed9 100644 --- a/db/migrate/107_add_open_id_authentication_tables.rb +++ b/db/migrate/107_add_open_id_authentication_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddOpenIdAuthenticationTables < ActiveRecord::Migration[4.2] def self.up create_table :open_id_authentication_associations, :force => true do |t| diff --git a/db/migrate/108_add_identity_url_to_users.rb b/db/migrate/108_add_identity_url_to_users.rb index 009743c0b..3ad85693c 100644 --- a/db/migrate/108_add_identity_url_to_users.rb +++ b/db/migrate/108_add_identity_url_to_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIdentityUrlToUsers < ActiveRecord::Migration[4.2] def self.up add_column :users, :identity_url, :string diff --git a/db/migrate/20090214190337_add_watchers_user_id_type_index.rb b/db/migrate/20090214190337_add_watchers_user_id_type_index.rb index c60a3b2ee..a437905b3 100644 --- a/db/migrate/20090214190337_add_watchers_user_id_type_index.rb +++ b/db/migrate/20090214190337_add_watchers_user_id_type_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWatchersUserIdTypeIndex < ActiveRecord::Migration[4.2] def self.up add_index :watchers, [:user_id, :watchable_type], :name => :watchers_user_id_type diff --git a/db/migrate/20090312172426_add_queries_sort_criteria.rb b/db/migrate/20090312172426_add_queries_sort_criteria.rb index c5bc030fb..06d1a82e4 100644 --- a/db/migrate/20090312172426_add_queries_sort_criteria.rb +++ b/db/migrate/20090312172426_add_queries_sort_criteria.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesSortCriteria < ActiveRecord::Migration[4.2] def self.up add_column :queries, :sort_criteria, :text diff --git a/db/migrate/20090312194159_add_projects_trackers_unique_index.rb b/db/migrate/20090312194159_add_projects_trackers_unique_index.rb index 24fb6c293..0957f736e 100644 --- a/db/migrate/20090312194159_add_projects_trackers_unique_index.rb +++ b/db/migrate/20090312194159_add_projects_trackers_unique_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectsTrackersUniqueIndex < ActiveRecord::Migration[4.2] def self.up remove_duplicates diff --git a/db/migrate/20090318181151_extend_settings_name.rb b/db/migrate/20090318181151_extend_settings_name.rb index 1091dac7e..228f4875c 100644 --- a/db/migrate/20090318181151_extend_settings_name.rb +++ b/db/migrate/20090318181151_extend_settings_name.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ExtendSettingsName < ActiveRecord::Migration[4.2] def self.up change_column :settings, :name, :string, :limit => 255, :default => '', :null => false diff --git a/db/migrate/20090323224724_add_type_to_enumerations.rb b/db/migrate/20090323224724_add_type_to_enumerations.rb index 100468d4b..8832d1321 100644 --- a/db/migrate/20090323224724_add_type_to_enumerations.rb +++ b/db/migrate/20090323224724_add_type_to_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTypeToEnumerations < ActiveRecord::Migration[4.2] def self.up add_column :enumerations, :type, :string diff --git a/db/migrate/20090401221305_update_enumerations_to_sti.rb b/db/migrate/20090401221305_update_enumerations_to_sti.rb index 1ba41076e..86610ae62 100644 --- a/db/migrate/20090401221305_update_enumerations_to_sti.rb +++ b/db/migrate/20090401221305_update_enumerations_to_sti.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class UpdateEnumerationsToSti < ActiveRecord::Migration[4.2] def self.up Enumeration.where("opt = 'IPRI'").update_all("type = 'IssuePriority'") diff --git a/db/migrate/20090401231134_add_active_field_to_enumerations.rb b/db/migrate/20090401231134_add_active_field_to_enumerations.rb index 5b9e432b5..b867427cc 100644 --- a/db/migrate/20090401231134_add_active_field_to_enumerations.rb +++ b/db/migrate/20090401231134_add_active_field_to_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddActiveFieldToEnumerations < ActiveRecord::Migration[4.2] def self.up add_column :enumerations, :active, :boolean, :default => true, :null => false diff --git a/db/migrate/20090403001910_add_project_to_enumerations.rb b/db/migrate/20090403001910_add_project_to_enumerations.rb index a90928949..756328263 100644 --- a/db/migrate/20090403001910_add_project_to_enumerations.rb +++ b/db/migrate/20090403001910_add_project_to_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectToEnumerations < ActiveRecord::Migration[4.2] def self.up add_column :enumerations, :project_id, :integer, :null => true, :default => nil diff --git a/db/migrate/20090406161854_add_parent_id_to_enumerations.rb b/db/migrate/20090406161854_add_parent_id_to_enumerations.rb index 546c0b704..6081be482 100644 --- a/db/migrate/20090406161854_add_parent_id_to_enumerations.rb +++ b/db/migrate/20090406161854_add_parent_id_to_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddParentIdToEnumerations < ActiveRecord::Migration[4.2] def self.up add_column :enumerations, :parent_id, :integer, :null => true, :default => nil diff --git a/db/migrate/20090425161243_add_queries_group_by.rb b/db/migrate/20090425161243_add_queries_group_by.rb index 07e1c5938..83d9a21d8 100644 --- a/db/migrate/20090425161243_add_queries_group_by.rb +++ b/db/migrate/20090425161243_add_queries_group_by.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesGroupBy < ActiveRecord::Migration[4.2] def self.up add_column :queries, :group_by, :string diff --git a/db/migrate/20090503121501_create_member_roles.rb b/db/migrate/20090503121501_create_member_roles.rb index 69ce2e81f..9df6c7c60 100644 --- a/db/migrate/20090503121501_create_member_roles.rb +++ b/db/migrate/20090503121501_create_member_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateMemberRoles < ActiveRecord::Migration[4.2] def self.up create_table :member_roles do |t| diff --git a/db/migrate/20090503121505_populate_member_roles.rb b/db/migrate/20090503121505_populate_member_roles.rb index e5f246afa..194a70c71 100644 --- a/db/migrate/20090503121505_populate_member_roles.rb +++ b/db/migrate/20090503121505_populate_member_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateMemberRoles < ActiveRecord::Migration[4.2] def self.up MemberRole.delete_all diff --git a/db/migrate/20090503121510_drop_members_role_id.rb b/db/migrate/20090503121510_drop_members_role_id.rb index 7b8e3cf9a..c740a5def 100644 --- a/db/migrate/20090503121510_drop_members_role_id.rb +++ b/db/migrate/20090503121510_drop_members_role_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class DropMembersRoleId < ActiveRecord::Migration[4.2] def self.up remove_column :members, :role_id diff --git a/db/migrate/20090614091200_fix_messages_sticky_null.rb b/db/migrate/20090614091200_fix_messages_sticky_null.rb index 66ea4bf2c..5681b36d0 100644 --- a/db/migrate/20090614091200_fix_messages_sticky_null.rb +++ b/db/migrate/20090614091200_fix_messages_sticky_null.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class FixMessagesStickyNull < ActiveRecord::Migration[4.2] def self.up Message.where('sticky IS NULL').update_all('sticky = 0') diff --git a/db/migrate/20090704172350_populate_users_type.rb b/db/migrate/20090704172350_populate_users_type.rb index 8342f9774..e82cef41c 100644 --- a/db/migrate/20090704172350_populate_users_type.rb +++ b/db/migrate/20090704172350_populate_users_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateUsersType < ActiveRecord::Migration[4.2] def self.up Principal.where("type IS NULL").update_all("type = 'User'") diff --git a/db/migrate/20090704172355_create_groups_users.rb b/db/migrate/20090704172355_create_groups_users.rb index 6d676304f..6fa2ae633 100644 --- a/db/migrate/20090704172355_create_groups_users.rb +++ b/db/migrate/20090704172355_create_groups_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateGroupsUsers < ActiveRecord::Migration[4.2] def self.up create_table :groups_users, :id => false do |t| diff --git a/db/migrate/20090704172358_add_member_roles_inherited_from.rb b/db/migrate/20090704172358_add_member_roles_inherited_from.rb index 45f0e45a4..f4573455a 100644 --- a/db/migrate/20090704172358_add_member_roles_inherited_from.rb +++ b/db/migrate/20090704172358_add_member_roles_inherited_from.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMemberRolesInheritedFrom < ActiveRecord::Migration[4.2] def self.up add_column :member_roles, :inherited_from, :integer diff --git a/db/migrate/20091010093521_fix_users_custom_values.rb b/db/migrate/20091010093521_fix_users_custom_values.rb index 38cabac86..d2d6026f0 100644 --- a/db/migrate/20091010093521_fix_users_custom_values.rb +++ b/db/migrate/20091010093521_fix_users_custom_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class FixUsersCustomValues < ActiveRecord::Migration[4.2] def self.up CustomValue.where("customized_type = 'User'"). diff --git a/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb b/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb index bf84c4f03..08717aafd 100644 --- a/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb +++ b/db/migrate/20091017212227_add_missing_indexes_to_workflows.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToWorkflows < ActiveRecord::Migration[4.2] def self.up add_index :workflows, :old_status_id diff --git a/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb b/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb index 235f1e6ed..1c78c227e 100644 --- a/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb +++ b/db/migrate/20091017212457_add_missing_indexes_to_custom_fields_projects.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToCustomFieldsProjects < ActiveRecord::Migration[4.2] def self.up add_index :custom_fields_projects, [:custom_field_id, :project_id] diff --git a/db/migrate/20091017212644_add_missing_indexes_to_messages.rb b/db/migrate/20091017212644_add_missing_indexes_to_messages.rb index 06897e1c0..8fafa3fe0 100644 --- a/db/migrate/20091017212644_add_missing_indexes_to_messages.rb +++ b/db/migrate/20091017212644_add_missing_indexes_to_messages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToMessages < ActiveRecord::Migration[4.2] def self.up add_index :messages, :last_reply_id diff --git a/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb b/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb index c9ac3f120..8c6540d5d 100644 --- a/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb +++ b/db/migrate/20091017212938_add_missing_indexes_to_repositories.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToRepositories < ActiveRecord::Migration[4.2] def self.up add_index :repositories, :project_id diff --git a/db/migrate/20091017213027_add_missing_indexes_to_comments.rb b/db/migrate/20091017213027_add_missing_indexes_to_comments.rb index 4bb8c0010..607ed49fa 100644 --- a/db/migrate/20091017213027_add_missing_indexes_to_comments.rb +++ b/db/migrate/20091017213027_add_missing_indexes_to_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToComments < ActiveRecord::Migration[4.2] def self.up add_index :comments, [:commented_id, :commented_type] diff --git a/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb index e97b993da..6ecd71acd 100644 --- a/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb +++ b/db/migrate/20091017213113_add_missing_indexes_to_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToEnumerations < ActiveRecord::Migration[4.2] def self.up add_index :enumerations, [:id, :type] diff --git a/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb b/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb index edeca8da7..6220710ed 100644 --- a/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb +++ b/db/migrate/20091017213151_add_missing_indexes_to_wiki_pages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToWikiPages < ActiveRecord::Migration[4.2] def self.up add_index :wiki_pages, :wiki_id diff --git a/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb b/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb index 18e948ec6..226af06c2 100644 --- a/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb +++ b/db/migrate/20091017213228_add_missing_indexes_to_watchers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToWatchers < ActiveRecord::Migration[4.2] def self.up add_index :watchers, :user_id diff --git a/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb b/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb index eca45226d..148db14f1 100644 --- a/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb +++ b/db/migrate/20091017213257_add_missing_indexes_to_auth_sources.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToAuthSources < ActiveRecord::Migration[4.2] def self.up add_index :auth_sources, [:id, :type] diff --git a/db/migrate/20091017213332_add_missing_indexes_to_documents.rb b/db/migrate/20091017213332_add_missing_indexes_to_documents.rb index a4e7e95dc..8846b7d8b 100644 --- a/db/migrate/20091017213332_add_missing_indexes_to_documents.rb +++ b/db/migrate/20091017213332_add_missing_indexes_to_documents.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToDocuments < ActiveRecord::Migration[4.2] def self.up add_index :documents, :category_id diff --git a/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb index 27ce82a93..dad7007e4 100644 --- a/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb +++ b/db/migrate/20091017213444_add_missing_indexes_to_tokens.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToTokens < ActiveRecord::Migration[4.2] def self.up add_index :tokens, :user_id diff --git a/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb index a71910841..8cdeef433 100644 --- a/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb +++ b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToChangesets < ActiveRecord::Migration[4.2] def self.up add_index :changesets, :user_id diff --git a/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb b/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb index 0a6282aa7..63becab40 100644 --- a/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb +++ b/db/migrate/20091017213642_add_missing_indexes_to_issue_categories.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToIssueCategories < ActiveRecord::Migration[4.2] def self.up add_index :issue_categories, :assigned_to_id diff --git a/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb b/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb index fed50d62e..421c91f32 100644 --- a/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb +++ b/db/migrate/20091017213716_add_missing_indexes_to_member_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToMemberRoles < ActiveRecord::Migration[4.2] def self.up add_index :member_roles, :member_id diff --git a/db/migrate/20091017213757_add_missing_indexes_to_boards.rb b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb index 5e5a97af5..2d11e15ba 100644 --- a/db/migrate/20091017213757_add_missing_indexes_to_boards.rb +++ b/db/migrate/20091017213757_add_missing_indexes_to_boards.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToBoards < ActiveRecord::Migration[4.2] def self.up add_index :boards, :last_message_id diff --git a/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb b/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb index 83a259e59..4012ed682 100644 --- a/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb +++ b/db/migrate/20091017213835_add_missing_indexes_to_user_preferences.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToUserPreferences < ActiveRecord::Migration[4.2] def self.up add_index :user_preferences, :user_id diff --git a/db/migrate/20091017213910_add_missing_indexes_to_issues.rb b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb index a337ebca8..122898113 100644 --- a/db/migrate/20091017213910_add_missing_indexes_to_issues.rb +++ b/db/migrate/20091017213910_add_missing_indexes_to_issues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToIssues < ActiveRecord::Migration[4.2] def self.up add_index :issues, :status_id diff --git a/db/migrate/20091017214015_add_missing_indexes_to_members.rb b/db/migrate/20091017214015_add_missing_indexes_to_members.rb index 693258080..97d3a6a26 100644 --- a/db/migrate/20091017214015_add_missing_indexes_to_members.rb +++ b/db/migrate/20091017214015_add_missing_indexes_to_members.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToMembers < ActiveRecord::Migration[4.2] def self.up add_index :members, :user_id diff --git a/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb b/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb index 7dbb0e781..c09214878 100644 --- a/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb +++ b/db/migrate/20091017214107_add_missing_indexes_to_custom_fields.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToCustomFields < ActiveRecord::Migration[4.2] def self.up add_index :custom_fields, [:id, :type] diff --git a/db/migrate/20091017214136_add_missing_indexes_to_queries.rb b/db/migrate/20091017214136_add_missing_indexes_to_queries.rb index 9a8d6ad96..d263e9e30 100644 --- a/db/migrate/20091017214136_add_missing_indexes_to_queries.rb +++ b/db/migrate/20091017214136_add_missing_indexes_to_queries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToQueries < ActiveRecord::Migration[4.2] def self.up add_index :queries, :project_id diff --git a/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb b/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb index cbe4166d5..0d20abd70 100644 --- a/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb +++ b/db/migrate/20091017214236_add_missing_indexes_to_time_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToTimeEntries < ActiveRecord::Migration[4.2] def self.up add_index :time_entries, :activity_id diff --git a/db/migrate/20091017214308_add_missing_indexes_to_news.rb b/db/migrate/20091017214308_add_missing_indexes_to_news.rb index e6194f4e6..b01945238 100644 --- a/db/migrate/20091017214308_add_missing_indexes_to_news.rb +++ b/db/migrate/20091017214308_add_missing_indexes_to_news.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToNews < ActiveRecord::Migration[4.2] def self.up add_index :news, :author_id diff --git a/db/migrate/20091017214336_add_missing_indexes_to_users.rb b/db/migrate/20091017214336_add_missing_indexes_to_users.rb index 7eedd10fa..7e69e4e98 100644 --- a/db/migrate/20091017214336_add_missing_indexes_to_users.rb +++ b/db/migrate/20091017214336_add_missing_indexes_to_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToUsers < ActiveRecord::Migration[4.2] def self.up add_index :users, [:id, :type] diff --git a/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb b/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb index 7fee1ea2e..45a21daf9 100644 --- a/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb +++ b/db/migrate/20091017214406_add_missing_indexes_to_attachments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToAttachments < ActiveRecord::Migration[4.2] def self.up add_index :attachments, [:container_id, :container_type] diff --git a/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb b/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb index 47888d4ad..dae71c7e9 100644 --- a/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb +++ b/db/migrate/20091017214440_add_missing_indexes_to_wiki_contents.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToWikiContents < ActiveRecord::Migration[4.2] def self.up add_index :wiki_contents, :author_id diff --git a/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb b/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb index 8b83c640d..f73465c32 100644 --- a/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb +++ b/db/migrate/20091017214519_add_missing_indexes_to_custom_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToCustomValues < ActiveRecord::Migration[4.2] def self.up add_index :custom_values, :custom_field_id diff --git a/db/migrate/20091017214611_add_missing_indexes_to_journals.rb b/db/migrate/20091017214611_add_missing_indexes_to_journals.rb index 26e37bf03..4deed673c 100644 --- a/db/migrate/20091017214611_add_missing_indexes_to_journals.rb +++ b/db/migrate/20091017214611_add_missing_indexes_to_journals.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToJournals < ActiveRecord::Migration[4.2] def self.up add_index :journals, :user_id diff --git a/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb b/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb index 29de45f62..8392b800f 100644 --- a/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb +++ b/db/migrate/20091017214644_add_missing_indexes_to_issue_relations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToIssueRelations < ActiveRecord::Migration[4.2] def self.up add_index :issue_relations, :issue_from_id diff --git a/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb b/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb index a0ce07f8b..f47d6b3b2 100644 --- a/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb +++ b/db/migrate/20091017214720_add_missing_indexes_to_wiki_redirects.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToWikiRedirects < ActiveRecord::Migration[4.2] def self.up add_index :wiki_redirects, :wiki_id diff --git a/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb b/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb index 23b6e5e4f..9c0159c7f 100644 --- a/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb +++ b/db/migrate/20091017214750_add_missing_indexes_to_custom_fields_trackers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddMissingIndexesToCustomFieldsTrackers < ActiveRecord::Migration[4.2] def self.up add_index :custom_fields_trackers, [:custom_field_id, :tracker_id] diff --git a/db/migrate/20091025163651_add_activity_indexes.rb b/db/migrate/20091025163651_add_activity_indexes.rb index 0bbf91bfd..4915bf04e 100644 --- a/db/migrate/20091025163651_add_activity_indexes.rb +++ b/db/migrate/20091025163651_add_activity_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddActivityIndexes < ActiveRecord::Migration[4.2] def self.up add_index :journals, :created_on diff --git a/db/migrate/20091108092559_add_versions_status.rb b/db/migrate/20091108092559_add_versions_status.rb index 36db4d823..f67d6e235 100644 --- a/db/migrate/20091108092559_add_versions_status.rb +++ b/db/migrate/20091108092559_add_versions_status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddVersionsStatus < ActiveRecord::Migration[4.2] def self.up add_column :versions, :status, :string, :default => 'open' diff --git a/db/migrate/20091114105931_add_view_issues_permission.rb b/db/migrate/20091114105931_add_view_issues_permission.rb index a0a9bcbf4..a7cf16d75 100644 --- a/db/migrate/20091114105931_add_view_issues_permission.rb +++ b/db/migrate/20091114105931_add_view_issues_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddViewIssuesPermission < ActiveRecord::Migration[4.2] def self.up Role.reset_column_information diff --git a/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb b/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb index 2b9df4f17..47850e0ce 100644 --- a/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb +++ b/db/migrate/20091123212029_add_default_done_ratio_to_issue_status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddDefaultDoneRatioToIssueStatus < ActiveRecord::Migration[4.2] def self.up add_column :issue_statuses, :default_done_ratio, :integer diff --git a/db/migrate/20091205124427_add_versions_sharing.rb b/db/migrate/20091205124427_add_versions_sharing.rb index 815f9fcda..30fb317b9 100644 --- a/db/migrate/20091205124427_add_versions_sharing.rb +++ b/db/migrate/20091205124427_add_versions_sharing.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddVersionsSharing < ActiveRecord::Migration[4.2] def self.up add_column :versions, :sharing, :string, :default => 'none', :null => false diff --git a/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb b/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb index 8ec510851..536c1d116 100644 --- a/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb +++ b/db/migrate/20091220183509_add_lft_and_rgt_indexes_to_projects.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddLftAndRgtIndexesToProjects < ActiveRecord::Migration[4.2] def self.up add_index :projects, :lft diff --git a/db/migrate/20091220183727_add_index_to_settings_name.rb b/db/migrate/20091220183727_add_index_to_settings_name.rb index 51a33b179..c5284ea0b 100644 --- a/db/migrate/20091220183727_add_index_to_settings_name.rb +++ b/db/migrate/20091220183727_add_index_to_settings_name.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexToSettingsName < ActiveRecord::Migration[4.2] def self.up add_index :settings, :name diff --git a/db/migrate/20091220184736_add_indexes_to_issue_status.rb b/db/migrate/20091220184736_add_indexes_to_issue_status.rb index 9b943518b..fa007a49e 100644 --- a/db/migrate/20091220184736_add_indexes_to_issue_status.rb +++ b/db/migrate/20091220184736_add_indexes_to_issue_status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexesToIssueStatus < ActiveRecord::Migration[4.2] def self.up add_index :issue_statuses, :position diff --git a/db/migrate/20091225164732_remove_enumerations_opt.rb b/db/migrate/20091225164732_remove_enumerations_opt.rb index ee39d5b50..750947f70 100644 --- a/db/migrate/20091225164732_remove_enumerations_opt.rb +++ b/db/migrate/20091225164732_remove_enumerations_opt.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveEnumerationsOpt < ActiveRecord::Migration[4.2] def self.up remove_column :enumerations, :opt diff --git a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb index d60a9a846..ced7980fd 100644 --- a/db/migrate/20091227112908_change_wiki_contents_text_limit.rb +++ b/db/migrate/20091227112908_change_wiki_contents_text_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeWikiContentsTextLimit < ActiveRecord::Migration[4.2] def self.up # Migrates MySQL databases only diff --git a/db/migrate/20100129193402_change_users_mail_notification_to_string.rb b/db/migrate/20100129193402_change_users_mail_notification_to_string.rb index a31666e39..6498f0f66 100644 --- a/db/migrate/20100129193402_change_users_mail_notification_to_string.rb +++ b/db/migrate/20100129193402_change_users_mail_notification_to_string.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeUsersMailNotificationToString < ActiveRecord::Migration[4.2] def self.up rename_column :users, :mail_notification, :mail_notification_bool diff --git a/db/migrate/20100129193813_update_mail_notification_values.rb b/db/migrate/20100129193813_update_mail_notification_values.rb index 00d3a0478..3d1d27c5d 100644 --- a/db/migrate/20100129193813_update_mail_notification_values.rb +++ b/db/migrate/20100129193813_update_mail_notification_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + # Patch the data from a boolean change. class UpdateMailNotificationValues < ActiveRecord::Migration[4.2] def self.up diff --git a/db/migrate/20100221100219_add_index_on_changesets_scmid.rb b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb index cef4be583..8629af442 100644 --- a/db/migrate/20100221100219_add_index_on_changesets_scmid.rb +++ b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexOnChangesetsScmid < ActiveRecord::Migration[4.2] def self.up add_index :changesets, [:repository_id, :scmid], :name => :changesets_repos_scmid diff --git a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb index a7e5ceeb1..64960f992 100644 --- a/db/migrate/20100313132032_add_issues_nested_sets_columns.rb +++ b/db/migrate/20100313132032_add_issues_nested_sets_columns.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssuesNestedSetsColumns < ActiveRecord::Migration[4.2] def self.up add_column :issues, :parent_id, :integer, :default => nil diff --git a/db/migrate/20100313171051_add_index_on_issues_nested_set.rb b/db/migrate/20100313171051_add_index_on_issues_nested_set.rb index b624c2249..1bc0d208c 100644 --- a/db/migrate/20100313171051_add_index_on_issues_nested_set.rb +++ b/db/migrate/20100313171051_add_index_on_issues_nested_set.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexOnIssuesNestedSet < ActiveRecord::Migration[4.2] def self.up add_index :issues, [:root_id, :lft, :rgt] diff --git a/db/migrate/20100705164950_change_changes_path_length_limit.rb b/db/migrate/20100705164950_change_changes_path_length_limit.rb index f40ca0852..f88f15cdf 100644 --- a/db/migrate/20100705164950_change_changes_path_length_limit.rb +++ b/db/migrate/20100705164950_change_changes_path_length_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeChangesPathLengthLimit < ActiveRecord::Migration[4.2] def self.up # these are two steps to please MySQL 5 on Win32 diff --git a/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb b/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb index 2e178e549..c68fb4864 100644 --- a/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb +++ b/db/migrate/20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration[4.2] def self.up EnabledModule.where(:name => 'issue_tracking').each do |e| diff --git a/db/migrate/20101104182107_add_unique_index_on_members.rb b/db/migrate/20101104182107_add_unique_index_on_members.rb index a29fc75b8..0a0800086 100644 --- a/db/migrate/20101104182107_add_unique_index_on_members.rb +++ b/db/migrate/20101104182107_add_unique_index_on_members.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexOnMembers < ActiveRecord::Migration[4.2] def self.up # Clean and reassign MemberRole rows if needed diff --git a/db/migrate/20101107130441_add_custom_fields_visible.rb b/db/migrate/20101107130441_add_custom_fields_visible.rb index d3edb145f..a8e27dbb6 100644 --- a/db/migrate/20101107130441_add_custom_fields_visible.rb +++ b/db/migrate/20101107130441_add_custom_fields_visible.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsVisible < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :visible, :boolean, :null => false, :default => true diff --git a/db/migrate/20101114115114_change_projects_name_limit.rb b/db/migrate/20101114115114_change_projects_name_limit.rb index e731a005d..aace7b5ad 100644 --- a/db/migrate/20101114115114_change_projects_name_limit.rb +++ b/db/migrate/20101114115114_change_projects_name_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeProjectsNameLimit < ActiveRecord::Migration[4.2] def self.up change_column :projects, :name, :string, :limit => nil, :default => '', :null => false diff --git a/db/migrate/20101114115359_change_projects_identifier_limit.rb b/db/migrate/20101114115359_change_projects_identifier_limit.rb index 1e2bb6e1c..6e900cf7d 100644 --- a/db/migrate/20101114115359_change_projects_identifier_limit.rb +++ b/db/migrate/20101114115359_change_projects_identifier_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeProjectsIdentifierLimit < ActiveRecord::Migration[4.2] def self.up change_column :projects, :identifier, :string, :limit => nil diff --git a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb index 5b04bd950..6d902578f 100644 --- a/db/migrate/20110220160626_add_workflows_assignee_and_author.rb +++ b/db/migrate/20110220160626_add_workflows_assignee_and_author.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWorkflowsAssigneeAndAuthor < ActiveRecord::Migration[4.2] def self.up add_column :workflows, :assignee, :boolean, :null => false, :default => false diff --git a/db/migrate/20110223180944_add_users_salt.rb b/db/migrate/20110223180944_add_users_salt.rb index 5fda33479..f8f9f465e 100644 --- a/db/migrate/20110223180944_add_users_salt.rb +++ b/db/migrate/20110223180944_add_users_salt.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUsersSalt < ActiveRecord::Migration[4.2] def self.up add_column :users, :salt, :string, :limit => 64 diff --git a/db/migrate/20110223180953_salt_user_passwords.rb b/db/migrate/20110223180953_salt_user_passwords.rb index 007691b90..f323f96f6 100644 --- a/db/migrate/20110223180953_salt_user_passwords.rb +++ b/db/migrate/20110223180953_salt_user_passwords.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SaltUserPasswords < ActiveRecord::Migration[4.2] def self.up diff --git a/db/migrate/20110224000000_add_repositories_path_encoding.rb b/db/migrate/20110224000000_add_repositories_path_encoding.rb index 23c16d26d..47fd347fc 100644 --- a/db/migrate/20110224000000_add_repositories_path_encoding.rb +++ b/db/migrate/20110224000000_add_repositories_path_encoding.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesPathEncoding < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :path_encoding, :string, :limit => 64, :default => nil diff --git a/db/migrate/20110226120112_change_repositories_password_limit.rb b/db/migrate/20110226120112_change_repositories_password_limit.rb index 5eb41f588..4969f2552 100644 --- a/db/migrate/20110226120112_change_repositories_password_limit.rb +++ b/db/migrate/20110226120112_change_repositories_password_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeRepositoriesPasswordLimit < ActiveRecord::Migration[4.2] def self.up change_column :repositories, :password, :string, :limit => nil, :default => '' diff --git a/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb index fac820b17..6498f36b1 100644 --- a/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb +++ b/db/migrate/20110226120132_change_auth_sources_account_password_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAuthSourcesAccountPasswordLimit < ActiveRecord::Migration[4.2] def self.up change_column :auth_sources, :account_password, :string, :limit => nil, :default => '' diff --git a/db/migrate/20110227125750_change_journal_details_values_to_text.rb b/db/migrate/20110227125750_change_journal_details_values_to_text.rb index 36dd7b5d1..59c31845f 100644 --- a/db/migrate/20110227125750_change_journal_details_values_to_text.rb +++ b/db/migrate/20110227125750_change_journal_details_values_to_text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeJournalDetailsValuesToText < ActiveRecord::Migration[4.2] def self.up change_column :journal_details, :old_value, :text diff --git a/db/migrate/20110228000000_add_repositories_log_encoding.rb b/db/migrate/20110228000000_add_repositories_log_encoding.rb index 7201f74bf..4e9b6ff78 100644 --- a/db/migrate/20110228000000_add_repositories_log_encoding.rb +++ b/db/migrate/20110228000000_add_repositories_log_encoding.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesLogEncoding < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :log_encoding, :string, :limit => 64, :default => nil diff --git a/db/migrate/20110228000100_copy_repositories_log_encoding.rb b/db/migrate/20110228000100_copy_repositories_log_encoding.rb index df9c3dca5..8de0c77db 100644 --- a/db/migrate/20110228000100_copy_repositories_log_encoding.rb +++ b/db/migrate/20110228000100_copy_repositories_log_encoding.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CopyRepositoriesLogEncoding < ActiveRecord::Migration[4.2] def self.up encoding = Setting.commit_logs_encoding.to_s.strip diff --git a/db/migrate/20110401192910_add_index_to_users_type.rb b/db/migrate/20110401192910_add_index_to_users_type.rb index 63fc49652..7137a1229 100644 --- a/db/migrate/20110401192910_add_index_to_users_type.rb +++ b/db/migrate/20110401192910_add_index_to_users_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexToUsersType < ActiveRecord::Migration[4.2] def self.up add_index :users, :type diff --git a/db/migrate/20110408103312_add_roles_issues_visibility.rb b/db/migrate/20110408103312_add_roles_issues_visibility.rb index 4f07e25ed..64dc6307f 100644 --- a/db/migrate/20110408103312_add_roles_issues_visibility.rb +++ b/db/migrate/20110408103312_add_roles_issues_visibility.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesIssuesVisibility < ActiveRecord::Migration[4.2] def self.up add_column :roles, :issues_visibility, :string, :limit => 30, :default => 'default', :null => false diff --git a/db/migrate/20110412065600_add_issues_is_private.rb b/db/migrate/20110412065600_add_issues_is_private.rb index 0066225b0..4ab16eb7e 100644 --- a/db/migrate/20110412065600_add_issues_is_private.rb +++ b/db/migrate/20110412065600_add_issues_is_private.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssuesIsPrivate < ActiveRecord::Migration[4.2] def self.up add_column :issues, :is_private, :boolean, :default => false, :null => false diff --git a/db/migrate/20110511000000_add_repositories_extra_info.rb b/db/migrate/20110511000000_add_repositories_extra_info.rb index 60ab175bf..10059e68e 100644 --- a/db/migrate/20110511000000_add_repositories_extra_info.rb +++ b/db/migrate/20110511000000_add_repositories_extra_info.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesExtraInfo < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :extra_info, :text diff --git a/db/migrate/20110902000000_create_changeset_parents.rb b/db/migrate/20110902000000_create_changeset_parents.rb index 1f367e606..929d8a113 100644 --- a/db/migrate/20110902000000_create_changeset_parents.rb +++ b/db/migrate/20110902000000_create_changeset_parents.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateChangesetParents < ActiveRecord::Migration[4.2] def self.up create_table :changeset_parents, :id => false do |t| diff --git a/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb b/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb index 63e6af87b..56b0be36d 100644 --- a/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb +++ b/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexToIssueRelations < ActiveRecord::Migration[4.2] def self.up diff --git a/db/migrate/20120115143024_add_repositories_identifier.rb b/db/migrate/20120115143024_add_repositories_identifier.rb index 28af22120..263efbb6a 100644 --- a/db/migrate/20120115143024_add_repositories_identifier.rb +++ b/db/migrate/20120115143024_add_repositories_identifier.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesIdentifier < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :identifier, :string diff --git a/db/migrate/20120115143100_add_repositories_is_default.rb b/db/migrate/20120115143100_add_repositories_is_default.rb index 81c242b5e..7aad9b91d 100644 --- a/db/migrate/20120115143100_add_repositories_is_default.rb +++ b/db/migrate/20120115143100_add_repositories_is_default.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesIsDefault < ActiveRecord::Migration[4.2] def self.up add_column :repositories, :is_default, :boolean, :default => false diff --git a/db/migrate/20120115143126_set_default_repositories.rb b/db/migrate/20120115143126_set_default_repositories.rb index e99b30725..425ab8ed3 100644 --- a/db/migrate/20120115143126_set_default_repositories.rb +++ b/db/migrate/20120115143126_set_default_repositories.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SetDefaultRepositories < ActiveRecord::Migration[4.2] def self.up Repository.update_all(["is_default = ?", false]) diff --git a/db/migrate/20120127174243_add_custom_fields_multiple.rb b/db/migrate/20120127174243_add_custom_fields_multiple.rb index 608fa6259..afbe11f0b 100644 --- a/db/migrate/20120127174243_add_custom_fields_multiple.rb +++ b/db/migrate/20120127174243_add_custom_fields_multiple.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsMultiple < ActiveRecord::Migration[4.2] def self.up add_column :custom_fields, :multiple, :boolean, :default => false diff --git a/db/migrate/20120205111326_change_users_login_limit.rb b/db/migrate/20120205111326_change_users_login_limit.rb index 6f3c08b1f..55495d447 100644 --- a/db/migrate/20120205111326_change_users_login_limit.rb +++ b/db/migrate/20120205111326_change_users_login_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeUsersLoginLimit < ActiveRecord::Migration[4.2] def self.up change_column :users, :login, :string, :limit => nil, :default => '', :null => false diff --git a/db/migrate/20120223110929_change_attachments_container_defaults.rb b/db/migrate/20120223110929_change_attachments_container_defaults.rb index 3c48276a1..a913571dc 100644 --- a/db/migrate/20120223110929_change_attachments_container_defaults.rb +++ b/db/migrate/20120223110929_change_attachments_container_defaults.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAttachmentsContainerDefaults < ActiveRecord::Migration[4.2] def self.up # Need to drop the index otherwise the following error occurs in Rails 3.1.3: diff --git a/db/migrate/20120301153455_add_auth_sources_filter.rb b/db/migrate/20120301153455_add_auth_sources_filter.rb index 8538f4da2..2a21d241f 100644 --- a/db/migrate/20120301153455_add_auth_sources_filter.rb +++ b/db/migrate/20120301153455_add_auth_sources_filter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAuthSourcesFilter < ActiveRecord::Migration[4.2] def self.up add_column :auth_sources, :filter, :string diff --git a/db/migrate/20120422150750_change_repositories_to_full_sti.rb b/db/migrate/20120422150750_change_repositories_to_full_sti.rb index 101ecbc12..98333acb1 100644 --- a/db/migrate/20120422150750_change_repositories_to_full_sti.rb +++ b/db/migrate/20120422150750_change_repositories_to_full_sti.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeRepositoriesToFullSti < ActiveRecord::Migration[4.2] def up Repository.connection. diff --git a/db/migrate/20120705074331_add_trackers_fields_bits.rb b/db/migrate/20120705074331_add_trackers_fields_bits.rb index 90e2ca1fe..c43d51f0d 100644 --- a/db/migrate/20120705074331_add_trackers_fields_bits.rb +++ b/db/migrate/20120705074331_add_trackers_fields_bits.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTrackersFieldsBits < ActiveRecord::Migration[4.2] def self.up add_column :trackers, :fields_bits, :integer, :default => 0 diff --git a/db/migrate/20120707064544_add_auth_sources_timeout.rb b/db/migrate/20120707064544_add_auth_sources_timeout.rb index 4491bc35b..09a9528d9 100644 --- a/db/migrate/20120707064544_add_auth_sources_timeout.rb +++ b/db/migrate/20120707064544_add_auth_sources_timeout.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAuthSourcesTimeout < ActiveRecord::Migration[4.2] def up add_column :auth_sources, :timeout, :integer diff --git a/db/migrate/20120714122000_add_workflows_type.rb b/db/migrate/20120714122000_add_workflows_type.rb index 6e2ffb6a4..c8591a453 100644 --- a/db/migrate/20120714122000_add_workflows_type.rb +++ b/db/migrate/20120714122000_add_workflows_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWorkflowsType < ActiveRecord::Migration[4.2] def up add_column :workflows, :type, :string, :limit => 30 diff --git a/db/migrate/20120714122100_update_workflows_to_sti.rb b/db/migrate/20120714122100_update_workflows_to_sti.rb index a5da4ba7a..c0adf9006 100644 --- a/db/migrate/20120714122100_update_workflows_to_sti.rb +++ b/db/migrate/20120714122100_update_workflows_to_sti.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class UpdateWorkflowsToSti < ActiveRecord::Migration[4.2] def up WorkflowRule.update_all "type = 'WorkflowTransition'" diff --git a/db/migrate/20120714122200_add_workflows_rule_fields.rb b/db/migrate/20120714122200_add_workflows_rule_fields.rb index aff919bf6..d751d48eb 100644 --- a/db/migrate/20120714122200_add_workflows_rule_fields.rb +++ b/db/migrate/20120714122200_add_workflows_rule_fields.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWorkflowsRuleFields < ActiveRecord::Migration[4.2] def up add_column :workflows, :field_name, :string, :limit => 30 diff --git a/db/migrate/20120731164049_add_boards_parent_id.rb b/db/migrate/20120731164049_add_boards_parent_id.rb index f67468426..168f0d68e 100644 --- a/db/migrate/20120731164049_add_boards_parent_id.rb +++ b/db/migrate/20120731164049_add_boards_parent_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddBoardsParentId < ActiveRecord::Migration[4.2] def up add_column :boards, :parent_id, :integer diff --git a/db/migrate/20120930112914_add_journals_private_notes.rb b/db/migrate/20120930112914_add_journals_private_notes.rb index 265d2516c..0a25fd59e 100644 --- a/db/migrate/20120930112914_add_journals_private_notes.rb +++ b/db/migrate/20120930112914_add_journals_private_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddJournalsPrivateNotes < ActiveRecord::Migration[4.2] def up add_column :journals, :private_notes, :boolean, :default => false, :null => false diff --git a/db/migrate/20121026002032_add_enumerations_position_name.rb b/db/migrate/20121026002032_add_enumerations_position_name.rb index eb5423fee..e25c02420 100644 --- a/db/migrate/20121026002032_add_enumerations_position_name.rb +++ b/db/migrate/20121026002032_add_enumerations_position_name.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddEnumerationsPositionName < ActiveRecord::Migration[4.2] def up add_column :enumerations, :position_name, :string, :limit => 30 diff --git a/db/migrate/20121026003537_populate_enumerations_position_name.rb b/db/migrate/20121026003537_populate_enumerations_position_name.rb index d4f1807ca..aa38a2b03 100644 --- a/db/migrate/20121026003537_populate_enumerations_position_name.rb +++ b/db/migrate/20121026003537_populate_enumerations_position_name.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateEnumerationsPositionName < ActiveRecord::Migration[4.2] def up IssuePriority.compute_position_names diff --git a/db/migrate/20121209123234_add_queries_type.rb b/db/migrate/20121209123234_add_queries_type.rb index fdfaac410..3f9fee2f3 100644 --- a/db/migrate/20121209123234_add_queries_type.rb +++ b/db/migrate/20121209123234_add_queries_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesType < ActiveRecord::Migration[4.2] def up add_column :queries, :type, :string diff --git a/db/migrate/20121209123358_update_queries_to_sti.rb b/db/migrate/20121209123358_update_queries_to_sti.rb index 088b8ca84..2d066ffb8 100644 --- a/db/migrate/20121209123358_update_queries_to_sti.rb +++ b/db/migrate/20121209123358_update_queries_to_sti.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class UpdateQueriesToSti < ActiveRecord::Migration[4.2] def up ::Query.update_all :type => 'IssueQuery' diff --git a/db/migrate/20121213084931_add_attachments_disk_directory.rb b/db/migrate/20121213084931_add_attachments_disk_directory.rb index dc3458028..f5df486e7 100644 --- a/db/migrate/20121213084931_add_attachments_disk_directory.rb +++ b/db/migrate/20121213084931_add_attachments_disk_directory.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAttachmentsDiskDirectory < ActiveRecord::Migration[4.2] def up add_column :attachments, :disk_directory, :string diff --git a/db/migrate/20130110122628_split_documents_permissions.rb b/db/migrate/20130110122628_split_documents_permissions.rb index f52b8e4cd..5b5a67b14 100644 --- a/db/migrate/20130110122628_split_documents_permissions.rb +++ b/db/migrate/20130110122628_split_documents_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SplitDocumentsPermissions < ActiveRecord::Migration[4.2] def up # :manage_documents permission split into 3 permissions: diff --git a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb index 4413e4e3b..6394965f6 100644 --- a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb +++ b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexOnTokensValue < ActiveRecord::Migration[4.2] def up say_with_time "Adding unique index on tokens, this may take some time..." do diff --git a/db/migrate/20130202090625_add_projects_inherit_members.rb b/db/migrate/20130202090625_add_projects_inherit_members.rb index 629ad4565..067653231 100644 --- a/db/migrate/20130202090625_add_projects_inherit_members.rb +++ b/db/migrate/20130202090625_add_projects_inherit_members.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectsInheritMembers < ActiveRecord::Migration[4.2] def up add_column :projects, :inherit_members, :boolean, :default => false, :null => false diff --git a/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb b/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb index 3353803ab..a23af10ee 100644 --- a/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb +++ b/db/migrate/20130207175206_add_unique_index_on_custom_fields_trackers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexOnCustomFieldsTrackers < ActiveRecord::Migration[4.2] def up table_name = "#{CustomField.table_name_prefix}custom_fields_trackers#{CustomField.table_name_suffix}" diff --git a/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb b/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb index 2198aed77..548aa9769 100644 --- a/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb +++ b/db/migrate/20130207181455_add_unique_index_on_custom_fields_projects.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexOnCustomFieldsProjects < ActiveRecord::Migration[4.2] def up table_name = "#{CustomField.table_name_prefix}custom_fields_projects#{CustomField.table_name_suffix}" diff --git a/db/migrate/20130215073721_change_users_lastname_length_to_255.rb b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb index 02939aadb..6fed8435d 100644 --- a/db/migrate/20130215073721_change_users_lastname_length_to_255.rb +++ b/db/migrate/20130215073721_change_users_lastname_length_to_255.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeUsersLastnameLengthTo255 < ActiveRecord::Migration[4.2] def self.up change_column :users, :lastname, :string, :limit => 255, :default => '', :null => false diff --git a/db/migrate/20130215111127_add_issues_closed_on.rb b/db/migrate/20130215111127_add_issues_closed_on.rb index f719b0d21..69d9cef96 100644 --- a/db/migrate/20130215111127_add_issues_closed_on.rb +++ b/db/migrate/20130215111127_add_issues_closed_on.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIssuesClosedOn < ActiveRecord::Migration[4.2] def up add_column :issues, :closed_on, :datetime, :default => nil diff --git a/db/migrate/20130215111141_populate_issues_closed_on.rb b/db/migrate/20130215111141_populate_issues_closed_on.rb index 009573837..3068a9815 100644 --- a/db/migrate/20130215111141_populate_issues_closed_on.rb +++ b/db/migrate/20130215111141_populate_issues_closed_on.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateIssuesClosedOn < ActiveRecord::Migration[4.2] def up closed_status_ids = IssueStatus.where(:is_closed => true).pluck(:id) diff --git a/db/migrate/20130217094251_remove_issues_default_fk_values.rb b/db/migrate/20130217094251_remove_issues_default_fk_values.rb index e2cea2160..44370612a 100644 --- a/db/migrate/20130217094251_remove_issues_default_fk_values.rb +++ b/db/migrate/20130217094251_remove_issues_default_fk_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveIssuesDefaultFkValues < ActiveRecord::Migration[4.2] def up change_column_default :issues, :tracker_id, nil diff --git a/db/migrate/20130602092539_create_queries_roles.rb b/db/migrate/20130602092539_create_queries_roles.rb index f37c26bbf..83a7dd672 100644 --- a/db/migrate/20130602092539_create_queries_roles.rb +++ b/db/migrate/20130602092539_create_queries_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateQueriesRoles < ActiveRecord::Migration[4.2] def self.up create_table :queries_roles, :id => false do |t| diff --git a/db/migrate/20130710182539_add_queries_visibility.rb b/db/migrate/20130710182539_add_queries_visibility.rb index 36f298d11..3c3c2685f 100644 --- a/db/migrate/20130710182539_add_queries_visibility.rb +++ b/db/migrate/20130710182539_add_queries_visibility.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesVisibility < ActiveRecord::Migration[4.2] def up add_column :queries, :visibility, :integer, :default => 0 diff --git a/db/migrate/20130713104233_create_custom_fields_roles.rb b/db/migrate/20130713104233_create_custom_fields_roles.rb index c34a123c1..472b34cb9 100644 --- a/db/migrate/20130713104233_create_custom_fields_roles.rb +++ b/db/migrate/20130713104233_create_custom_fields_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateCustomFieldsRoles < ActiveRecord::Migration[4.2] def self.up create_table :custom_fields_roles, :id => false do |t| diff --git a/db/migrate/20130713111657_add_queries_options.rb b/db/migrate/20130713111657_add_queries_options.rb index 9bd5834aa..1950b509f 100644 --- a/db/migrate/20130713111657_add_queries_options.rb +++ b/db/migrate/20130713111657_add_queries_options.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddQueriesOptions < ActiveRecord::Migration[4.2] def up add_column :queries, :options, :text diff --git a/db/migrate/20130729070143_add_users_must_change_passwd.rb b/db/migrate/20130729070143_add_users_must_change_passwd.rb index 3a5860fe0..75f236a09 100644 --- a/db/migrate/20130729070143_add_users_must_change_passwd.rb +++ b/db/migrate/20130729070143_add_users_must_change_passwd.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUsersMustChangePasswd < ActiveRecord::Migration[4.2] def up add_column :users, :must_change_passwd, :boolean, :default => false, :null => false diff --git a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb index 3eafd3399..8be7a27b4 100644 --- a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb +++ b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveEolsFromAttachmentsFilename < ActiveRecord::Migration[4.2] def up Attachment.where("filename like ? or filename like ?", "%\r%", "%\n%").each do |attachment| diff --git a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb index d8beb4aea..4185429fb 100644 --- a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb +++ b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class SupportForMultipleCommitKeywords < ActiveRecord::Migration[4.2] def up # Replaces commit_fix_keywords, commit_fix_status_id, commit_fix_done_ratio settings diff --git a/db/migrate/20131005100610_add_repositories_created_on.rb b/db/migrate/20131005100610_add_repositories_created_on.rb index ccc664b5b..03cdb4b81 100644 --- a/db/migrate/20131005100610_add_repositories_created_on.rb +++ b/db/migrate/20131005100610_add_repositories_created_on.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRepositoriesCreatedOn < ActiveRecord::Migration[4.2] def up add_column :repositories, :created_on, :timestamp diff --git a/db/migrate/20131124175346_add_custom_fields_format_store.rb b/db/migrate/20131124175346_add_custom_fields_format_store.rb index fc9cb4d66..e15c10604 100644 --- a/db/migrate/20131124175346_add_custom_fields_format_store.rb +++ b/db/migrate/20131124175346_add_custom_fields_format_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsFormatStore < ActiveRecord::Migration[4.2] def up add_column :custom_fields, :format_store, :text diff --git a/db/migrate/20131210180802_add_custom_fields_description.rb b/db/migrate/20131210180802_add_custom_fields_description.rb index 736b2cf17..3a9791920 100644 --- a/db/migrate/20131210180802_add_custom_fields_description.rb +++ b/db/migrate/20131210180802_add_custom_fields_description.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddCustomFieldsDescription < ActiveRecord::Migration[4.2] def up add_column :custom_fields, :description, :text diff --git a/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb b/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb index 7a37d3c8d..31a6342c6 100644 --- a/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb +++ b/db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveCustomFieldsMinMaxLengthDefaultValues < ActiveRecord::Migration[4.2] def up change_column :custom_fields, :min_length, :int, :default => nil, :null => true diff --git a/db/migrate/20131215104612_store_relation_type_in_journal_details.rb b/db/migrate/20131215104612_store_relation_type_in_journal_details.rb index c1990e67d..ac1fc6e8c 100644 --- a/db/migrate/20131215104612_store_relation_type_in_journal_details.rb +++ b/db/migrate/20131215104612_store_relation_type_in_journal_details.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class StoreRelationTypeInJournalDetails < ActiveRecord::Migration[4.2] MAPPING = { diff --git a/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb b/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb index e9d902d2f..34de224c8 100644 --- a/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb +++ b/db/migrate/20131218183023_delete_orphan_time_entries_custom_values.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class DeleteOrphanTimeEntriesCustomValues < ActiveRecord::Migration[4.2] def up CustomValue.where("customized_type = ? AND NOT EXISTS (SELECT 1 FROM #{TimeEntry.table_name} t WHERE t.id = customized_id)", "TimeEntry").delete_all diff --git a/db/migrate/20140228130325_change_changesets_comments_limit.rb b/db/migrate/20140228130325_change_changesets_comments_limit.rb index 2cff73120..72b0801a6 100644 --- a/db/migrate/20140228130325_change_changesets_comments_limit.rb +++ b/db/migrate/20140228130325_change_changesets_comments_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2] def up if ActiveRecord::Base.connection.adapter_name =~ /mysql/i diff --git a/db/migrate/20140903143914_add_password_changed_at_to_user.rb b/db/migrate/20140903143914_add_password_changed_at_to_user.rb index 80ebd9e3e..4d08381e7 100644 --- a/db/migrate/20140903143914_add_password_changed_at_to_user.rb +++ b/db/migrate/20140903143914_add_password_changed_at_to_user.rb @@ -1,5 +1,7 @@ -class AddPasswordChangedAtToUser < ActiveRecord::Migration[4.2]
- def change
- add_column :users, :passwd_changed_on, :datetime
- end
-end
+# frozen_string_literal: false + +class AddPasswordChangedAtToUser < ActiveRecord::Migration[4.2] + def change + add_column :users, :passwd_changed_on, :datetime + end +end diff --git a/db/migrate/20140920094058_insert_builtin_groups.rb b/db/migrate/20140920094058_insert_builtin_groups.rb index f58d77fba..5eff7adc1 100644 --- a/db/migrate/20140920094058_insert_builtin_groups.rb +++ b/db/migrate/20140920094058_insert_builtin_groups.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class InsertBuiltinGroups < ActiveRecord::Migration[4.2] def up Group.reset_column_information diff --git a/db/migrate/20141029181752_add_trackers_default_status_id.rb b/db/migrate/20141029181752_add_trackers_default_status_id.rb index 74716ea63..36bd6edd3 100644 --- a/db/migrate/20141029181752_add_trackers_default_status_id.rb +++ b/db/migrate/20141029181752_add_trackers_default_status_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTrackersDefaultStatusId < ActiveRecord::Migration[4.2] def up add_column :trackers, :default_status_id, :integer diff --git a/db/migrate/20141029181824_remove_issue_statuses_is_default.rb b/db/migrate/20141029181824_remove_issue_statuses_is_default.rb index 09808e31c..f74cac4e6 100644 --- a/db/migrate/20141029181824_remove_issue_statuses_is_default.rb +++ b/db/migrate/20141029181824_remove_issue_statuses_is_default.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveIssueStatusesIsDefault < ActiveRecord::Migration[4.2] def up remove_column :issue_statuses, :is_default diff --git a/db/migrate/20141109112308_add_roles_users_visibility.rb b/db/migrate/20141109112308_add_roles_users_visibility.rb index ef9dabb2b..fef64790b 100644 --- a/db/migrate/20141109112308_add_roles_users_visibility.rb +++ b/db/migrate/20141109112308_add_roles_users_visibility.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesUsersVisibility < ActiveRecord::Migration[4.2] def self.up add_column :roles, :users_visibility, :string, :limit => 30, :default => 'all', :null => false diff --git a/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb index fee149968..9134e8e7d 100644 --- a/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb +++ b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddWikiRedirectsRedirectsToWikiId < ActiveRecord::Migration[4.2] def self.up add_column :wiki_redirects, :redirects_to_wiki_id, :integer diff --git a/db/migrate/20150113194759_create_email_addresses.rb b/db/migrate/20150113194759_create_email_addresses.rb index 001beda22..d9088a51e 100644 --- a/db/migrate/20150113194759_create_email_addresses.rb +++ b/db/migrate/20150113194759_create_email_addresses.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateEmailAddresses < ActiveRecord::Migration[4.2] def change create_table :email_addresses do |t| diff --git a/db/migrate/20150113211532_populate_email_addresses.rb b/db/migrate/20150113211532_populate_email_addresses.rb index 7e4a5509d..0f115bf6e 100644 --- a/db/migrate/20150113211532_populate_email_addresses.rb +++ b/db/migrate/20150113211532_populate_email_addresses.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class PopulateEmailAddresses < ActiveRecord::Migration[4.2] def self.up t = EmailAddress.connection.quoted_true diff --git a/db/migrate/20150113213922_remove_users_mail.rb b/db/migrate/20150113213922_remove_users_mail.rb index 2942c4136..4f6f3bb28 100644 --- a/db/migrate/20150113213922_remove_users_mail.rb +++ b/db/migrate/20150113213922_remove_users_mail.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemoveUsersMail < ActiveRecord::Migration[4.2] def self.up remove_column :users, :mail diff --git a/db/migrate/20150113213955_add_email_addresses_user_id_index.rb b/db/migrate/20150113213955_add_email_addresses_user_id_index.rb index b57b362fa..351696d9c 100644 --- a/db/migrate/20150113213955_add_email_addresses_user_id_index.rb +++ b/db/migrate/20150113213955_add_email_addresses_user_id_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddEmailAddressesUserIdIndex < ActiveRecord::Migration[4.2] def up add_index :email_addresses, :user_id diff --git a/db/migrate/20150208105930_replace_move_issues_permission.rb b/db/migrate/20150208105930_replace_move_issues_permission.rb index 690bba23c..631ac73f4 100644 --- a/db/migrate/20150208105930_replace_move_issues_permission.rb +++ b/db/migrate/20150208105930_replace_move_issues_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ReplaceMoveIssuesPermission < ActiveRecord::Migration[4.2] def self.up Role.all.each do |role| diff --git a/db/migrate/20150510083747_change_documents_title_limit.rb b/db/migrate/20150510083747_change_documents_title_limit.rb index ebb2767c7..669c53e57 100644 --- a/db/migrate/20150510083747_change_documents_title_limit.rb +++ b/db/migrate/20150510083747_change_documents_title_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeDocumentsTitleLimit < ActiveRecord::Migration[4.2] def self.up change_column :documents, :title, :string, :limit => nil, :default => '', :null => false diff --git a/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb b/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb index 4dfc38d2f..4d8ed05e1 100644 --- a/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb +++ b/db/migrate/20150525103953_clear_estimated_hours_on_parent_issues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ClearEstimatedHoursOnParentIssues < ActiveRecord::Migration[4.2] def self.up # Clears estimated hours on parent issues diff --git a/db/migrate/20150526183158_add_roles_time_entries_visibility.rb b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb index 968adc6eb..340c169d6 100644 --- a/db/migrate/20150526183158_add_roles_time_entries_visibility.rb +++ b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesTimeEntriesVisibility < ActiveRecord::Migration[4.2] def self.up add_column :roles, :time_entries_visibility, :string, :limit => 30, :default => 'all', :null => false diff --git a/db/migrate/20150528084820_add_roles_all_roles_managed.rb b/db/migrate/20150528084820_add_roles_all_roles_managed.rb index 08c8ddce3..85da8fddb 100644 --- a/db/migrate/20150528084820_add_roles_all_roles_managed.rb +++ b/db/migrate/20150528084820_add_roles_all_roles_managed.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesAllRolesManaged < ActiveRecord::Migration[4.2] def change add_column :roles, :all_roles_managed, :boolean, :default => true, :null => false diff --git a/db/migrate/20150528092912_create_roles_managed_roles.rb b/db/migrate/20150528092912_create_roles_managed_roles.rb index 707fca675..66cce874f 100644 --- a/db/migrate/20150528092912_create_roles_managed_roles.rb +++ b/db/migrate/20150528092912_create_roles_managed_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateRolesManagedRoles < ActiveRecord::Migration[4.2] def change create_table :roles_managed_roles, :id => false do |t| diff --git a/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb b/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb index c20873629..542ba1c1f 100644 --- a/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb +++ b/db/migrate/20150528093249_add_unique_index_on_roles_managed_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddUniqueIndexOnRolesManagedRoles < ActiveRecord::Migration[4.2] def change add_index :roles_managed_roles, [:role_id, :managed_role_id], :unique => true diff --git a/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb b/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb index f86d54f47..6869a52ff 100644 --- a/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb +++ b/db/migrate/20150725112753_insert_allowed_statuses_for_new_issues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class InsertAllowedStatusesForNewIssues < ActiveRecord::Migration[4.2] def self.up # Adds the default status for all trackers and roles diff --git a/db/migrate/20150730122707_create_imports.rb b/db/migrate/20150730122707_create_imports.rb index 0a4109edb..924d81abc 100644 --- a/db/migrate/20150730122707_create_imports.rb +++ b/db/migrate/20150730122707_create_imports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateImports < ActiveRecord::Migration[4.2] def change create_table :imports do |t| diff --git a/db/migrate/20150730122735_create_import_items.rb b/db/migrate/20150730122735_create_import_items.rb index 2639805dd..637d62dd6 100644 --- a/db/migrate/20150730122735_create_import_items.rb +++ b/db/migrate/20150730122735_create_import_items.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateImportItems < ActiveRecord::Migration[4.2] def change create_table :import_items do |t| diff --git a/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb index f529a99fc..72c4efa35 100644 --- a/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb +++ b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeTimeEntriesCommentsLimitTo1024 < ActiveRecord::Migration[4.2] def self.up change_column :time_entries, :comments, :string, :limit => 1024 diff --git a/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb b/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb index 9f85a7c61..ec889e70d 100644 --- a/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb +++ b/db/migrate/20150921210243_change_wiki_contents_comments_limit_to_1024.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeWikiContentsCommentsLimitTo1024 < ActiveRecord::Migration[4.2] def self.up change_column :wiki_content_versions, :comments, :string, :limit => 1024, :default => '' diff --git a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb index 508e3ad39..4d3cd2e17 100644 --- a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb +++ b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration[4.2] def self.up change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false diff --git a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb index 9c185b0cd..1b7485d2d 100644 --- a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb +++ b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class FixCommaInUserFormatSettingValue < ActiveRecord::Migration[4.2] def self.up Setting. diff --git a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb index 7d0fa8a17..44fe0af08 100644 --- a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb +++ b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration[4.2] def self.up change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false diff --git a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb index 71575631e..8498b682c 100644 --- a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb +++ b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAuthSourcesFilterToText < ActiveRecord::Migration[4.2] def self.up change_column :auth_sources, :filter, :text diff --git a/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb index bee79924c..9446edfb5 100644 --- a/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb +++ b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeUserPreferencesHideMailDefaultToTrue < ActiveRecord::Migration[4.2] def self.up change_column :user_preferences, :hide_mail, :boolean, :default => true diff --git a/db/migrate/20151024082034_add_tokens_updated_on.rb b/db/migrate/20151024082034_add_tokens_updated_on.rb index 7b94a3a95..b8c488684 100644 --- a/db/migrate/20151024082034_add_tokens_updated_on.rb +++ b/db/migrate/20151024082034_add_tokens_updated_on.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTokensUpdatedOn < ActiveRecord::Migration[4.2] def self.up add_column :tokens, :updated_on, :timestamp diff --git a/db/migrate/20151025072118_create_custom_field_enumerations.rb b/db/migrate/20151025072118_create_custom_field_enumerations.rb index c1b2eaec4..b652cdd03 100644 --- a/db/migrate/20151025072118_create_custom_field_enumerations.rb +++ b/db/migrate/20151025072118_create_custom_field_enumerations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class CreateCustomFieldEnumerations < ActiveRecord::Migration[4.2] def change create_table :custom_field_enumerations do |t| diff --git a/db/migrate/20151031095005_add_projects_default_version_id.rb b/db/migrate/20151031095005_add_projects_default_version_id.rb index e62c54e89..5a54715a7 100644 --- a/db/migrate/20151031095005_add_projects_default_version_id.rb +++ b/db/migrate/20151031095005_add_projects_default_version_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectsDefaultVersionId < ActiveRecord::Migration[4.2] def self.up # Don't try to add the column if redmine_default_version plugin was used diff --git a/db/migrate/20160404080304_force_password_reset_during_setup.rb b/db/migrate/20160404080304_force_password_reset_during_setup.rb index 00d3a65a5..058f18622 100644 --- a/db/migrate/20160404080304_force_password_reset_during_setup.rb +++ b/db/migrate/20160404080304_force_password_reset_during_setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ForcePasswordResetDuringSetup < ActiveRecord::Migration[4.2] def up User.where(login: "admin", last_login_on: nil).update_all(must_change_passwd: true) diff --git a/db/migrate/20160416072926_remove_position_defaults.rb b/db/migrate/20160416072926_remove_position_defaults.rb index 9ba7b3c8e..80e894e30 100644 --- a/db/migrate/20160416072926_remove_position_defaults.rb +++ b/db/migrate/20160416072926_remove_position_defaults.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RemovePositionDefaults < ActiveRecord::Migration[4.2] def up [Board, CustomField, Enumeration, IssueStatus, Role, Tracker].each do |klass| diff --git a/db/migrate/20160529063352_add_roles_settings.rb b/db/migrate/20160529063352_add_roles_settings.rb index 84f2bf37d..0fcfa5034 100644 --- a/db/migrate/20160529063352_add_roles_settings.rb +++ b/db/migrate/20160529063352_add_roles_settings.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddRolesSettings < ActiveRecord::Migration[4.2] def change add_column :roles, :settings, :text diff --git a/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb index 60c62a6f8..b9c66114c 100644 --- a/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb +++ b/db/migrate/20161001122012_add_tracker_id_index_to_workflows.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddTrackerIdIndexToWorkflows < ActiveRecord::Migration[4.2] def self.up add_index :workflows, :tracker_id diff --git a/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb index f806a31fd..0dfdbb834 100644 --- a/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb +++ b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexOnMemberRolesInheritedFrom < ActiveRecord::Migration[4.2] def change add_index :member_roles, :inherited_from diff --git a/db/migrate/20161010081301_change_issues_description_limit.rb b/db/migrate/20161010081301_change_issues_description_limit.rb index 93fcc53ff..7559dfaf5 100644 --- a/db/migrate/20161010081301_change_issues_description_limit.rb +++ b/db/migrate/20161010081301_change_issues_description_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeIssuesDescriptionLimit < ActiveRecord::Migration[4.2] def up if ActiveRecord::Base.connection.adapter_name =~ /mysql/i diff --git a/db/migrate/20161010081528_change_journal_details_value_limit.rb b/db/migrate/20161010081528_change_journal_details_value_limit.rb index d83fbacd6..7f48e885b 100644 --- a/db/migrate/20161010081528_change_journal_details_value_limit.rb +++ b/db/migrate/20161010081528_change_journal_details_value_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeJournalDetailsValueLimit < ActiveRecord::Migration[4.2] def up if ActiveRecord::Base.connection.adapter_name =~ /mysql/i diff --git a/db/migrate/20161010081600_change_journals_notes_limit.rb b/db/migrate/20161010081600_change_journals_notes_limit.rb index 34197bc47..f98bd85c1 100644 --- a/db/migrate/20161010081600_change_journals_notes_limit.rb +++ b/db/migrate/20161010081600_change_journals_notes_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeJournalsNotesLimit < ActiveRecord::Migration[4.2] def up if ActiveRecord::Base.connection.adapter_name =~ /mysql/i diff --git a/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb b/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb index 1099e4ebc..4078039b1 100644 --- a/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb +++ b/db/migrate/20161126094932_add_index_on_changesets_issues_issue_id.rb @@ -1,5 +1,7 @@ -class AddIndexOnChangesetsIssuesIssueId < ActiveRecord::Migration[4.2]
- def change
- add_index :changesets_issues, :issue_id
- end
-end
+# frozen_string_literal: false + +class AddIndexOnChangesetsIssuesIssueId < ActiveRecord::Migration[4.2] + def change + add_index :changesets_issues, :issue_id + end +end diff --git a/db/migrate/20161220091118_add_index_on_issues_parent_id.rb b/db/migrate/20161220091118_add_index_on_issues_parent_id.rb index 07592a9d8..07d13eb0e 100644 --- a/db/migrate/20161220091118_add_index_on_issues_parent_id.rb +++ b/db/migrate/20161220091118_add_index_on_issues_parent_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexOnIssuesParentId < ActiveRecord::Migration[4.2] def change add_index :issues, :parent_id diff --git a/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb index 3f2eaee8e..e350e328d 100644 --- a/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb +++ b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddIndexOnDiskFilenameToAttachments < ActiveRecord::Migration[4.2] def change add_index :attachments, :disk_filename diff --git a/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb index 620deb251..36cc76015 100644 --- a/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb +++ b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeAttachmentsDigestLimitTo64 < ActiveRecord::Migration[4.2] def up change_column :attachments, :digest, :string, limit: 64 diff --git a/db/migrate/20170309214320_add_project_default_assigned_to_id.rb b/db/migrate/20170309214320_add_project_default_assigned_to_id.rb index 40d3282f4..0919594de 100644 --- a/db/migrate/20170309214320_add_project_default_assigned_to_id.rb +++ b/db/migrate/20170309214320_add_project_default_assigned_to_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddProjectDefaultAssignedToId < ActiveRecord::Migration[4.2] def up add_column :projects, :default_assigned_to_id, :integer, :default => nil diff --git a/db/migrate/20170320051650_change_repositories_extra_info_limit.rb b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb index 104111a39..adfebaf31 100644 --- a/db/migrate/20170320051650_change_repositories_extra_info_limit.rb +++ b/db/migrate/20170320051650_change_repositories_extra_info_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeRepositoriesExtraInfoLimit < ActiveRecord::Migration[4.2] def up if ActiveRecord::Base.connection.adapter_name =~ /mysql/i diff --git a/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb b/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb index 7c9896c98..1722eb316 100644 --- a/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb +++ b/db/migrate/20170418090031_add_view_news_to_all_existing_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddViewNewsToAllExistingRoles < ActiveRecord::Migration[4.2] def up Role.all.each { |role| role.add_permission! :view_news } diff --git a/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb index 7a3ba67e3..62d7023ea 100644 --- a/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb +++ b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddViewMessagesToAllExistingRoles < ActiveRecord::Migration[4.2] def up Role.all.each { |role| role.add_permission! :view_messages } diff --git a/db/migrate/20170723112801_rename_comments_to_content.rb b/db/migrate/20170723112801_rename_comments_to_content.rb index 6c014286d..c522c3fad 100644 --- a/db/migrate/20170723112801_rename_comments_to_content.rb +++ b/db/migrate/20170723112801_rename_comments_to_content.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class RenameCommentsToContent < ActiveRecord::Migration[5.1] def change rename_column :comments, :comments, :content diff --git a/db/migrate/20180501132547_add_author_id_to_time_entries.rb b/db/migrate/20180501132547_add_author_id_to_time_entries.rb index 3d79bf210..186421976 100644 --- a/db/migrate/20180501132547_add_author_id_to_time_entries.rb +++ b/db/migrate/20180501132547_add_author_id_to_time_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddAuthorIdToTimeEntries < ActiveRecord::Migration[5.1] def up add_column :time_entries, :author_id, :integer, :default => nil, :after => :project_id diff --git a/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb b/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb index b36564c10..ac9ade809 100644 --- a/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb +++ b/db/migrate/20180913072918_add_verify_peer_to_auth_sources.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class AddVerifyPeerToAuthSources < ActiveRecord::Migration[5.2] def change change_table :auth_sources do |t| diff --git a/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb b/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb index fb789ae10..4e202f59c 100644 --- a/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb +++ b/db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeSqliteBooleansTo0And1 < ActiveRecord::Migration[5.2] COLUMNS = { diff --git a/db/migrate/20180923091603_change_sqlite_booleans_default.rb b/db/migrate/20180923091603_change_sqlite_booleans_default.rb index 563bf3237..05af84e23 100644 --- a/db/migrate/20180923091603_change_sqlite_booleans_default.rb +++ b/db/migrate/20180923091603_change_sqlite_booleans_default.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: false + class ChangeSqliteBooleansDefault < ActiveRecord::Migration[5.2] DEFAULTS = { "auth_sources" => { |