• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sue445 / activerecord-compatible_legacy_migration / #7392

02 Aug 2024 10:58PM UTC coverage: 90.909%. Remained the same
#7392

push

web-flow
Merge pull request #74 from sue445/sue445-patch-1

Fix CI

20 of 22 relevant lines covered (90.91%)

1.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/lib/active_record/compatible_legacy_migration.rb
1
require "active_record/compatible_legacy_migration/version"
1✔
2
require "active_record/compatible_legacy_migration/configuration"
1✔
3
require "active_record"
1✔
4

5
module ActiveRecord
1✔
6
  module CompatibleLegacyMigration
1✔
7
    def self.config
1✔
8
      @config ||= Configuration.new
8✔
9
    end
10

11
    def self.configure
1✔
12
      yield config if block_given?
×
13
    end
14

15
    def self.migration_class
1✔
16
      if ActiveRecord::VERSION::MAJOR >= 5
3✔
17
        ActiveRecord::Migration[config.default_version]
3✔
18
      else
19
        ActiveRecord::Migration
×
20
      end
21
    end
22
  end
23
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc