lib/monkey_patch_postgres.rb in partitioned-1.1.3 vs lib/monkey_patch_postgres.rb in partitioned-1.1.5
- old
+ new
@@ -27,9 +27,12 @@
# sequences (and sets of sequence values), schemas and foreign keys.
# These should go into AbstractAdapter allowing any database adapter
# to take advantage of these SQL builders.
#
class PostgreSQLAdapter < AbstractAdapter
+ def partitioned_sql_adapter(model)
+ return Partitioned::PartitionedBase::SqlAdapter.new(model)
+ end
#
# Returns the sequence name for a table's primary key or some other specified key.
#
# the default version strips off the schema name on the table (if it exists), as: