File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11dist : trusty
22language : ruby
3- sudo : false
3+ sudo : required
44cache : bundler
55rvm :
66 - 2.4.1
@@ -17,6 +17,11 @@ services:
1717 - mysql
1818addons :
1919 postgresql : ' 9.6'
20+ apt :
21+ packages :
22+ - mysql-server-5.6
23+ - mysql-client-core-5.6
24+ - mysql-client-5.6
2025before_script :
2126 - sh -c "if [ '$DB_ADAPTER' = 'mysql2' ]; then mysql -e 'create database ajax_datatables_rails;'; fi"
2227 - sh -c "if [ '$DB_ADAPTER' = 'postgresql' ]; then psql -c 'create database ajax_datatables_rails;' -U postgres; fi"
Original file line number Diff line number Diff line change 6565 encoding : 'utf8'
6666}
6767
68- options = options . merge ( username : 'root' , host : 'localhost' ) if adapter == 'mysql2'
69- options = options . merge ( database : 'tmp/test.sqlite3 ' ) if adapter == 'sqlite3'
68+ options = options . merge ( username : 'root' ) if adapter == 'mysql2'
69+ options = options . merge ( database : ':memory: ' ) if adapter == 'sqlite3'
7070
7171ActiveRecord ::Base . establish_connection ( options )
7272
You can’t perform that action at this time.
0 commit comments