Skip to content

How to require activerecord-import? #474

@gerrywastaken

Description

@gerrywastaken

When I set require: false in my Gemfile and instead do the following in a script

require 'active_record'
require 'activerecord-import'
require 'activerecord-import/base'
require 'activerecord-import/import'

activerecord-import instead tries to do every insert as a single insert. What am I doing wrong here?

I can see that supports_import? is somehow being set to false and this is why it doesn't work, but I'm not sure why that would be the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions