Remove activerecord-import gem

This commit is contained in:
Alex Sherman 2021-05-17 14:39:53 +05:00
parent 7ca35150cd
commit abb918a849
3 changed files with 2 additions and 5 deletions

View file

@ -15,7 +15,6 @@ gem 'uglifier'
gem 'figaro', '~> 1.2' gem 'figaro', '~> 1.2'
# model related # model related
gem 'activerecord-import'
gem 'paper_trail', '~> 12.0' gem 'paper_trail', '~> 12.0'
gem 'pg', '1.2.3' gem 'pg', '1.2.3'
# 1.8 is for Rails < 5.0 # 1.8 is for Rails < 5.0

View file

@ -124,8 +124,6 @@ GEM
activerecord (6.1.3.2) activerecord (6.1.3.2)
activemodel (= 6.1.3.2) activemodel (= 6.1.3.2)
activesupport (= 6.1.3.2) activesupport (= 6.1.3.2)
activerecord-import (1.0.8)
activerecord (>= 3.2)
activestorage (6.1.3.2) activestorage (6.1.3.2)
actionpack (= 6.1.3.2) actionpack (= 6.1.3.2)
activejob (= 6.1.3.2) activejob (= 6.1.3.2)
@ -515,7 +513,6 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
active_interaction (~> 4.0) active_interaction (~> 4.0)
activerecord-import
airbrake airbrake
apipie-rails (~> 0.5.18) apipie-rails (~> 0.5.18)
aws-sdk-sesv2 (~> 1.16) aws-sdk-sesv2 (~> 1.16)

View file

@ -12,7 +12,8 @@ class FillEmailVerifications < ActiveRecord::Migration[6.0]
# result = emails.map do |email| # result = emails.map do |email|
# { email: email, domain: domain(email) } # { email: email, domain: domain(email) }
# end # end
# EmailAddressVerification.import result, batch_size: 500 # EmailAddressVerification.import result, batch_size: 500 #deprecated/removed
# need to use insert_all if uncommented
end end
def down def down