Skip to content

Commit

Permalink
Merge pull request #1984 from internetee/1978-remove-activerecord-import
Browse files Browse the repository at this point in the history
Remove activerecord-import gem
  • Loading branch information
yulgolem authored May 17, 2021
2 parents 7ca3515 + abb918a commit 90b128f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ gem 'uglifier'
gem 'figaro', '~> 1.2'

# model related
gem 'activerecord-import'
gem 'paper_trail', '~> 12.0'
gem 'pg', '1.2.3'
# 1.8 is for Rails < 5.0
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ GEM
activerecord (6.1.3.2)
activemodel (= 6.1.3.2)
activesupport (= 6.1.3.2)
activerecord-import (1.0.8)
activerecord (>= 3.2)
activestorage (6.1.3.2)
actionpack (= 6.1.3.2)
activejob (= 6.1.3.2)
Expand Down Expand Up @@ -515,7 +513,6 @@ PLATFORMS

DEPENDENCIES
active_interaction (~> 4.0)
activerecord-import
airbrake
apipie-rails (~> 0.5.18)
aws-sdk-sesv2 (~> 1.16)
Expand Down
3 changes: 2 additions & 1 deletion db/data/20200608084321_fill_email_verifications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def up
# result = emails.map do |email|
# { email: email, domain: domain(email) }
# end
# EmailAddressVerification.import result, batch_size: 500
# EmailAddressVerification.import result, batch_size: 500 #deprecated/removed
# need to use insert_all if uncommented
end

def down
Expand Down

0 comments on commit 90b128f

Please sign in to comment.