Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/fast_load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


ActiveSupport.on_load :active_record do
require "postgres-copy/active_record"
require "postgres-copy/acts_as_copy_target"
end
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
Expand All @@ -24,6 +24,7 @@
}

class TestModel < ActiveRecord::Base
acts_as_copy_target
end

encoder = PgDataEncoder::EncodeForCopy.new
Expand Down