Sha256: 43788cec01e5065f6c7155c1953e377bb95fc6107e08e5eafe01380e1d2d8073

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

module SchemaPlusTables
  module ActiveRecord
    module ConnectionAdapters
      module PostgresqlAdapter
        # pg gem defines a drop_table with fewer options than our Abstract
        # one, so use the abstract one instead
        def drop_table(name, options={})
          SchemaPlusTables::ActiveRecord::ConnectionAdapters::AbstractAdapter.instance_method(:drop_table).bind(self).call(name, options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
schema_plus-2.0.0.pre5 lib/schema_plus_tables/active_record/connection_adapters/postgresql_adapter.rb
schema_plus-2.0.0.pre3 lib/schema_plus_tables/active_record/connection_adapters/postgresql_adapter.rb
schema_plus-2.0.0.pre2 lib/schema_plus_tables/active_record/connection_adapters/postgresql_adapter.rb
schema_plus-2.0.0.pre1 lib/schema_plus_tables/active_record/connection_adapters/postgresql_adapter.rb