Skip to content

Commit

Permalink
docs: Minor fix
Browse files Browse the repository at this point in the history
* Fix a typo
* Use a correct language identifier to enable syntax highlighting
* Use the latest ActiveRecord version in a sample
  • Loading branch information
mishina2228 committed Jan 13, 2022
1 parent 85d697d commit e05af9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ When rubygems pushes the `lib` folder onto the load path a `require` will now fi

Activerecord-Import adds the `.import` method onto `ActiveRecord::Base`. There are other gems, such as `elasticsearch-rails`, that do the same thing. In conflicts such as this, there is an aliased method named `.bulk_import` that can be used interchangeably.

If you are using the `apartment` gem, there is a weird triple interaction between that gem, `activerecord-import`, and `activerecord` involving caching of the `sequence_name` of a model. This can be worked around by explcitly setting this value within the model. For example:
If you are using the `apartment` gem, there is a weird triple interaction between that gem, `activerecord-import`, and `activerecord` involving caching of the `sequence_name` of a model. This can be worked around by explicitly setting this value within the model. For example:

```ruby
class Post < ActiveRecord::Base
Expand Down Expand Up @@ -615,10 +615,10 @@ After that, you can run the tests. They run against multiple tests and ActiveRec

This is one example of how to run the tests:

```ruby
```bash
rm Gemfile.lock
AR_VERSION=4.2 bundle install
AR_VERSION=4.2 bundle exec rake test:postgresql test:sqlite3 test:mysql2
AR_VERSION=7.0 bundle install
AR_VERSION=7.0 bundle exec rake test:postgresql test:sqlite3 test:mysql2
```

Once you have pushed up your changes, you can find your CI results [here](https://travis-ci.org/zdennis/activerecord-import/).
Expand Down

0 comments on commit e05af9c

Please sign in to comment.