Sha256: 477f1ac775223f7752b8ac71f9fdfea3f8e62ab5058491578af85602f2ac83ea

Contents?: true

Size: 252 Bytes

Versions: 9

Compression:

Stored size: 252 Bytes

Contents

module Audited
  module Generators
    module MigrationHelper
      def migration_parent
        Rails::VERSION::MAJOR == 4 ? 'ActiveRecord::Migration' : "ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
audited-4.10.0 lib/generators/audited/migration_helper.rb
audited-4.9.0 lib/generators/audited/migration_helper.rb
audited-4.8.0 lib/generators/audited/migration_helper.rb
audited-4.7.1 lib/generators/audited/migration_helper.rb
audited-4.7.0 lib/generators/audited/migration_helper.rb
audited-4.6.0 lib/generators/audited/migration_helper.rb
audited-4.5.0 lib/generators/audited/migration_helper.rb
audited-4.4.1 lib/generators/audited/migration_helper.rb
audited-4.4.0 lib/generators/audited/migration_helper.rb