Renaming ActiveRecord::Extensions to ActiveRecord::Import.
This commit is contained in:
parent
948dec0be2
commit
90057c43eb
12 changed files with 17 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
module ActiveRecord::Extensions::Import::AbstractAdapter
|
||||
module ActiveRecord::Import::AbstractAdapter
|
||||
NO_MAX_PACKET = 0
|
||||
QUERY_OVERHEAD = 8 #This was shown to be true for MySQL, but it's not clear where the overhead is from.
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
module ActiveRecord::Extensions::Import::MysqlAdapter
|
||||
module ActiveRecord::Import::MysqlAdapter
|
||||
module InstanceMethods
|
||||
def self.included(klass)
|
||||
klass.instance_eval do
|
||||
include ActiveRecord::Extensions::Import::ImportSupport
|
||||
include ActiveRecord::Extensions::Import::OnDuplicateKeyUpdateSupport
|
||||
include ActiveRecord::Import::ImportSupport
|
||||
include ActiveRecord::Import::OnDuplicateKeyUpdateSupport
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module ActiveRecord::Extensions::Import::PostgreSQLAdapter
|
||||
module ActiveRecord::Import::PostgreSQLAdapter
|
||||
module InstanceMethods
|
||||
def next_value_for_sequence(sequence_name)
|
||||
%{nextval('#{sequence_name}')}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module ActiveRecord::Extensions::Import::Sqlite3Adapter
|
||||
module ActiveRecord::Import::Sqlite3Adapter
|
||||
module InstanceMethods
|
||||
def next_value_for_sequence(sequence_name)
|
||||
%{nextval('#{sequence_name}')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue