Enable ImportSupport on Postgresql - the test suite now passes in full

This commit is contained in:
Ben Woosley 2010-11-17 00:20:00 -08:00 committed by Zach Dennis
parent 7bd0e2693a
commit a3e9b4f040
2 changed files with 26 additions and 0 deletions

View file

@ -1,5 +1,11 @@
module ActiveRecord::Import::PostgreSQLAdapter
module InstanceMethods
def self.included(klass)
klass.instance_eval do
include ActiveRecord::Import::ImportSupport
end
end
def next_value_for_sequence(sequence_name)
%{nextval('#{sequence_name}')}
end