Sha256: 391ab29eb250ec787710ac19af7a32956d89932550b535c3023eb609ff3e6ec7

Contents?: true

Size: 592 Bytes

Versions: 6

Compression:

Stored size: 592 Bytes

Contents

module SchemaPlusPgIndexes
  module Middleware
    module Postgresql
      module Migration

        module Index
          # Deprecate args
          def before(env)
            {:conditions => :where, :kind => :using}.each do |deprecated, proper|
              if env.options[deprecated]
                ActiveSupport::Deprecation.warn "ActiveRecord index option #{deprecated.inspect} is deprecated, use #{proper.inspect} instead"
                env.options[proper] = env.options.delete(deprecated)
              end
            end
          end
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
schema_plus_pg_indexes-0.1.8 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb
schema_plus_pg_indexes-0.1.7 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb
schema_plus_pg_indexes-0.1.6 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb
schema_plus_pg_indexes-0.1.5 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb
schema_plus_pg_indexes-0.1.4 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb
schema_plus_pg_indexes-0.1.3 lib/schema_plus_pg_indexes/middleware/postgresql/migration.rb