Sha256: 22703bc9a3ba0e3ef3b5deaf564b9db1ce31bffdfb4be7925c1489c3e9c5b8e6

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module MigrationHelper

  def self.migration_base_class
    klass = ActiveRecord::Migration

    if Rails::VERSION::MAJOR >= 5
      if Rails::VERSION::MAJOR > 5 || Rails::VERSION::MINOR >= 1
        klass = ActiveRecord::Migration[4.2]
      end
    end

    klass
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbview_cti-0.2.3 spec/dummy-rails-3/db/migrate/migration_helper.rb