Sha256: 04a109da1a68b7d5276c0a75948525072a1b61f0692e14bb306b4c400ad63213

Contents?: true

Size: 326 Bytes

Versions: 11

Compression:

Stored size: 326 Bytes

Contents

module ActiveRecord
  module PGEnum
    register :migration_keys do
      require "active_record/connection_adapters/postgresql_adapter"
      ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend MigrationKeys
    end

    module MigrationKeys
      def migration_keys
        super + [:as]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
activerecord-pg_enum-2.0.0 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.2.2 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.2.1 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.2.0 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.1.0 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.5 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.4 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.3 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.2 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.1 lib/active_record/pg_enum/4.1/migration_keys.rb
activerecord-pg_enum-1.0.0 lib/active_record/pg_enum/4.1/migration_keys.rb