Commit bf13e7ab authored by maeda's avatar maeda

Remove frozen_string_literal magic comment from files which are not used when...

Remove frozen_string_literal magic comment from files which are not used when running the application or tests (#23630).


git-svn-id: https://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e479d7f9
# frozen_string_literal: false
source 'https://rubygems.org'
gem "bundler", ">= 1.5.0"
......
#!/usr/bin/env rake
# frozen_string_literal: false
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
......
#!/usr/bin/env ruby
# frozen_string_literal: false
ENV["RAILS_ENV"] ||= "production"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
......
#!/usr/bin/env ruby
# frozen_string_literal: false
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
#!/usr/bin/env ruby
# frozen_string_literal: false
require 'optparse'
require 'ostruct'
require 'date'
......
#!/usr/bin/env ruby
# frozen_string_literal: false
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
#!/usr/bin/env ruby
# frozen_string_literal: false
require_relative '../config/boot'
require 'rake'
Rake.application.run
# frozen_string_literal: false
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
......
# frozen_string_literal: false
# Redmine - project management software
# Copyright (C) 2006 Jean-Philippe Lang
#
......
# frozen_string_literal: false
class IssueMove < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class IssueAddNote < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class ExportPdf < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class IssueStartDate < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :start_date, :date
......
# frozen_string_literal: false
class CalendarAndActivity < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateJournals < ActiveRecord::Migration[4.2]
# model removed, but needed for data migration
......
# frozen_string_literal: false
class CreateUserPreferences < ActiveRecord::Migration[4.2]
def self.up
create_table :user_preferences do |t|
......
# frozen_string_literal: false
class AddHideMailPref < ActiveRecord::Migration[4.2]
def self.up
add_column :user_preferences, :hide_mail, :boolean, :default => false
......
# frozen_string_literal: false
class CreateComments < ActiveRecord::Migration[4.2]
def self.up
create_table :comments do |t|
......
# frozen_string_literal: false
class AddNewsCommentsCount < ActiveRecord::Migration[4.2]
def self.up
add_column :news, :comments_count, :integer, :default => 0, :null => false
......
# frozen_string_literal: false
class AddCommentsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateQueries < ActiveRecord::Migration[4.2]
def self.up
create_table :queries, :force => true do |t|
......
# frozen_string_literal: false
class AddQueriesPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateRepositories < ActiveRecord::Migration[4.2]
def self.up
create_table :repositories, :force => true do |t|
......
# frozen_string_literal: false
class AddRepositoriesPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateSettings < ActiveRecord::Migration[4.2]
def self.up
create_table :settings, :force => true do |t|
......
# frozen_string_literal: false
class SetDocAndFilesNotifications < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddIssueStatusPosition < ActiveRecord::Migration[4.2]
def self.up
add_column :issue_statuses, :position, :integer, :default => 1
......
# frozen_string_literal: false
class AddRolePosition < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :position, :integer, :default => 1
......
# frozen_string_literal: false
class AddTrackerPosition < ActiveRecord::Migration[4.2]
def self.up
add_column :trackers, :position, :integer, :default => 1
......
# frozen_string_literal: false
class SerializePossiblesValues < ActiveRecord::Migration[4.2]
def self.up
CustomField.all.each do |field|
......
# frozen_string_literal: false
class AddTrackerIsInRoadmap < ActiveRecord::Migration[4.2]
def self.up
add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false
......
# frozen_string_literal: false
class AddRoadmapPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddSearchPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddRepositoryLoginAndPassword < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :login, :string, :limit => 60, :default => ""
......
# frozen_string_literal: false
class CreateWikis < ActiveRecord::Migration[4.2]
def self.up
create_table :wikis do |t|
......
# frozen_string_literal: false
class CreateWikiPages < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_pages do |t|
......
# frozen_string_literal: false
class CreateWikiContents < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_contents do |t|
......
# frozen_string_literal: false
class AddProjectsFeedsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddRepositoryRootUrl < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :root_url, :string, :limit => 255, :default => ""
......
# frozen_string_literal: false
class CreateTimeEntries < ActiveRecord::Migration[4.2]
def self.up
create_table :time_entries do |t|
......
# frozen_string_literal: false
class AddTimelogPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class CreateChangesets < ActiveRecord::Migration[4.2]
def self.up
create_table :changesets do |t|
......
# frozen_string_literal: false
class CreateChanges < ActiveRecord::Migration[4.2]
def self.up
create_table :changes do |t|
......
# frozen_string_literal: false
class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
def self.up
add_column :changesets, :commit_date, :date
......
# frozen_string_literal: false
class AddProjectIdentifier < ActiveRecord::Migration[4.2]
def self.up
add_column :projects, :identifier, :string, :limit => 20
......
# frozen_string_literal: false
class AddCustomFieldIsFilter < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :is_filter, :boolean, :null => false, :default => false
......
# frozen_string_literal: false
class CreateWatchers < ActiveRecord::Migration[4.2]
def self.up
create_table :watchers do |t|
......
# frozen_string_literal: false
class CreateChangesetsIssues < ActiveRecord::Migration[4.2]
def self.up
create_table :changesets_issues, :id => false do |t|
......
# 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"}
......
# frozen_string_literal: false
class CreateIssueRelations < ActiveRecord::Migration[4.2]
def self.up
create_table :issue_relations do |t|
......
# frozen_string_literal: false
class AddRelationsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class SetLanguageLengthToFive < ActiveRecord::Migration[4.2]
def self.up
change_column :users, :language, :string, :limit => 5, :default => ""
......
# frozen_string_literal: false
class CreateBoards < ActiveRecord::Migration[4.2]
def self.up
create_table :boards do |t|
......
# frozen_string_literal: false
class CreateMessages < ActiveRecord::Migration[4.2]
def self.up
create_table :messages do |t|
......
# frozen_string_literal: false
class AddBoardsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AllowNullVersionEffectiveDate < ActiveRecord::Migration[4.2]
def self.up
change_column :versions, :effective_date, :date, :default => nil, :null => true
......
# frozen_string_literal: false
class AddWikiDestroyPagePermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddWikiAttachmentsPermissions < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddProjectStatus < ActiveRecord::Migration[4.2]
def self.up
add_column :projects, :status, :integer, :default => 1, :null => false
......
# frozen_string_literal: false
class AddChangesRevision < ActiveRecord::Migration[4.2]
def self.up
add_column :changes, :revision, :string
......
# frozen_string_literal: false
class AddChangesBranch < ActiveRecord::Migration[4.2]
def self.up
add_column :changes, :branch, :string
......
# frozen_string_literal: false
class AddChangesetsScmid < ActiveRecord::Migration[4.2]
def self.up
add_column :changesets, :scmid, :string
......
# frozen_string_literal: false
class AddRepositoriesType < ActiveRecord::Migration[4.2]
def self.up
add_column :repositories, :type, :string
......
# frozen_string_literal: false
class AddRepositoriesChangesPermission < ActiveRecord::Migration[4.2]
# model removed
class Permission < ActiveRecord::Base; end
......
# frozen_string_literal: false
class AddVersionsWikiPageTitle < ActiveRecord::Migration[4.2]
def self.up
add_column :versions, :wiki_page_title, :string
......
# frozen_string_literal: false
class AddIssueCategoriesAssignedToId < ActiveRecord::Migration[4.2]
def self.up
add_column :issue_categories, :assigned_to_id, :integer
......
# frozen_string_literal: false
class AddRolesAssignable < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :assignable, :boolean, :default => true
......
# frozen_string_literal: false
class ChangeChangesetsCommitterLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :changesets, :committer, :string, :limit => nil
......
# frozen_string_literal: false
class AddRolesBuiltin < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :builtin, :integer, :default => 0, :null => false
......
# frozen_string_literal: false
class InsertBuiltinRoles < ActiveRecord::Migration[4.2]
def self.up
Role.reset_column_information
......
# frozen_string_literal: false
class AddRolesPermissions < ActiveRecord::Migration[4.2]
def self.up
add_column :roles, :permissions, :text
......
# frozen_string_literal: false
class DropPermissions < ActiveRecord::Migration[4.2]
def self.up
drop_table :permissions
......
# frozen_string_literal: false
class AddSettingsUpdatedOn < ActiveRecord::Migration[4.2]
def self.up
add_column :settings, :updated_on, :timestamp
......
# 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
......
# frozen_string_literal: false
class CreateWikiRedirects < ActiveRecord::Migration[4.2]
def self.up
create_table :wiki_redirects do |t|
......
# frozen_string_literal: false
class CreateEnabledModules < ActiveRecord::Migration[4.2]
def self.up
create_table :enabled_modules do |t|
......
# frozen_string_literal: false
class AddIssuesEstimatedHours < ActiveRecord::Migration[4.2]
def self.up
add_column :issues, :estimated_hours, :float
......
# frozen_string_literal: false
class ChangeAttachmentsContentTypeLimit < ActiveRecord::Migration[4.2]
def self.up
change_column :attachments, :content_type, :string, :limit => nil
......
# frozen_string_literal: false
class AddQueriesColumnNames < ActiveRecord::Migration[4.2]
def self.up
add_column :queries, :column_names, :text
......
# 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')
......
# frozen_string_literal: false
class AddEnumerationsIsDefault < ActiveRecord::Migration[4.2]
def self.up
add_column :enumerations, :is_default, :boolean, :default => false, :null => false
......
# frozen_string_literal: false
class AddAuthSourcesTls < ActiveRecord::Migration[4.2]
def self.up
add_column :auth_sources, :tls, :boolean, :default => false, :null => false
......
# frozen_string_literal: false
class AddMembersMailNotification < ActiveRecord::Migration[4.2]
def self.up
add_column :members, :mail_notification, :boolean, :default => false, :null => false
......
# frozen_string_literal: false
class AllowNullPosition < ActiveRecord::Migration[4.2]
def self.up
Enumeration.reset_column_information
......
# frozen_string_literal: false
class RemoveIssueStatusesHtmlColor < ActiveRecord::Migration[4.2]
def self.up
remove_column :issue_statuses, :html_color
......