- 'app/models/issue_query.rb'
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- 'lib/redmine/i18n.rb'
- - 'lib/redmine/plugin.rb'
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:
class MigrationContext < ActiveRecord::MigrationContext
def up(target_version = nil)
- selected_migrations = if block_given?
- migrations.select { |m| yield m }
- else
- migrations
- end
-
+ selected_migrations =
+ if block_given?
+ migrations.select { |m| yield m }
+ else
+ migrations
+ end
Migrator.new(:up, selected_migrations, target_version).migrate
end
def down(target_version = nil)
- selected_migrations = if block_given?
- migrations.select { |m| yield m }
- else
- migrations
- end
-
+ selected_migrations =
+ if block_given?
+ migrations.select { |m| yield m }
+ else
+ migrations
+ end
Migrator.new(:down, selected_migrations, target_version).migrate
end