Sha256: 4b2c220c5c0c6f8b0fee113ae5a9d748933fa4605eabb6f49d60583fed726714

Contents?: true

Size: 391 Bytes

Versions: 17

Compression:

Stored size: 391 Bytes

Contents

require "rails/generators/active_record"
require "active_record/migration"

module Mobility
  module ActiveRecordMigrationCompatibility
    def activerecord_migration_class
      if ::ActiveRecord::Migration.respond_to?(:current_version)
        "ActiveRecord::Migration[#{::ActiveRecord::Migration.current_version}]"
      else
        "ActiveRecord::Migration"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mobility-0.4.3 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.4.2 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.4.1 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.4.0 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.6 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.5 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.4 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.3 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.2 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.1 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.3.0 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.2.3 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.2.2 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.2.1 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.2.0 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.1.20 lib/rails/generators/mobility/active_record_migration_compatibility.rb
mobility-0.1.19 lib/generators/rails/mobility/active_record_migration_compatibility.rb