@@ -160,7 +160,12 @@ on_heroku = ENV['ON_HEROKU'] || |
||
| 160 | 160 |
ENV['HEROKU_POSTGRESQL_GOLD_URL'] || |
| 161 | 161 |
File.read(File.join(File.dirname(__FILE__), 'Procfile')) =~ /intended for Heroku/ |
| 162 | 162 |
|
| 163 |
-ENV['DATABASE_ADAPTER'] ||= 'postgresql' if on_heroku |
|
| 163 |
+ENV['DATABASE_ADAPTER'] ||= |
|
| 164 |
+ if on_heroku |
|
| 165 |
+ 'postgresql' |
|
| 166 |
+ else |
|
| 167 |
+ 'mysql2' |
|
| 168 |
+ end |
|
| 164 | 169 |
|
| 165 | 170 |
if_true(on_heroku) do |
| 166 | 171 |
gem 'rails_12factor', group: :production |