diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-12 07:46:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-12 07:46:58 +0000 |
commit | 74e2262efb366a37a70f64dc0faec2d63086b9e5 (patch) | |
tree | 6c729c11c116119d777e2ba00fb568f529079e78 /db | |
parent | de76bb3a4a00146f8d53dbc25f2e90ca99910a22 (diff) | |
download | redmine-74e2262efb366a37a70f64dc0faec2d63086b9e5.tar.gz redmine-74e2262efb366a37a70f64dc0faec2d63086b9e5.zip |
Fix RuboCop offense Layout/EmptyLinesAroundMethodBody, one of the offenses enabled in rubocop-rails-omakase (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22950 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/001_setup.rb | 2 | ||||
-rw-r--r-- | db/migrate/20111201201315_add_unique_index_to_issue_relations.rb | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb index a2ae11f67..aa3760aa3 100644 --- a/db/migrate/001_setup.rb +++ b/db/migrate/001_setup.rb @@ -295,8 +295,6 @@ class Setup < ActiveRecord::Migration[4.2] user.hashed_password = "d033e22ae348aeb5660fc2140aec35850c4da997" user.admin = true user.save - - end def self.down 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..accc8ede2 100644 --- a/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb +++ b/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb @@ -1,6 +1,5 @@ class AddUniqueIndexToIssueRelations < ActiveRecord::Migration[4.2] def self.up - # Remove duplicates IssueRelation.connection.select_values("SELECT r.id FROM #{IssueRelation.table_name} r" + " WHERE r.id > (SELECT min(r1.id) FROM #{IssueRelation.table_name} r1 WHERE r1.issue_from_id = r.issue_from_id AND r1.issue_to_id = r.issue_to_id)").each do |i| |