Skip to content

Commit

Permalink
Changes support to AR 5+ to make sure tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed Jun 4, 2018
1 parent 871023f commit 08008c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -82,7 +82,7 @@ See also [this issue](https://github.com/rails/rails/issues/32926) and [this art

## Version support

Support `ActiveRecord` 4 - 5.1.6. Although for certain versions of ActiveRecord 4 you can explicitly set `RAILS_ENV` to `development` to avoid execution in `test` env ([see e.g. 4.2](https://github.com/rails/rails/blob/v4.2.0/activerecord/lib/active_record/tasks/database_tasks.rb#L271)).
Supports `ActiveRecord` 5.0.0 - 5.1.6. For certain versions of ActiveRecord 4 you can explicitly set `RAILS_ENV` to `development` to avoid execution in `test` env ([see e.g. 4.2](https://github.com/rails/rails/blob/v4.2.0/activerecord/lib/active_record/tasks/database_tasks.rb#L271)).

## Caveats

Expand Down
2 changes: 1 addition & 1 deletion dotenv_rails_db_tasks_fix.gemspec
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "dotenv"
spec.add_dependency "activerecord", ">= 4.0.0", "<= 5.1.6"
spec.add_dependency "activerecord", ">= 5.0.0", "<= 5.1.6"

spec.add_development_dependency "sqlite3"
spec.add_development_dependency "bundler", "~> 1.16"
Expand Down

0 comments on commit 08008c1

Please sign in to comment.