-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Main change was to sqlite3. The 2.0 driver broke things Locally, was having trouble compiling mysql2, so hardc oded a version that is working
- Loading branch information
Showing
8 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
%w[5.2.8 6.0.6 6.1.7 7.0.8 7.1.2].each do |ar_version| | ||
# on a mac using: | ||
# bundle config --global build.mysql2 "--with-mysql-dir=$(brew --prefix mysql)" | ||
|
||
%w[5.2.8 6.0.6 6.1.7 7.0.8 7.1.3].each do |ar_version| | ||
appraise "gemfile-#{ar_version.split('.').first(2).join}" do | ||
gem 'activerecord', "~> #{ar_version}" | ||
# active record 5.2 uses ruby 2.6 | ||
# active record 6.x uses ruby 2.7 (sometimes 3.0) | ||
# so we are targeting the ruby version indirectly through active record | ||
if ar_version < "7.0" | ||
gem "sqlite3", "~> 1.6.9" | ||
else | ||
# sqlite3 v 2.0 is causing trouble with rails | ||
gem "sqlite3", "< 2.0" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ gemspec | |
gem "activerecord", "~> 6.1.7" | ||
gem "mysql2" | ||
gem "pg" | ||
gem "sqlite3" | ||
gem "sqlite3", "~> 1.6.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters