File tree 2 files changed +11
-2
lines changed
lib/database_cleaner/spec
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module DatabaseCleaner
4
4
module Spec
5
5
class DatabaseHelper < Struct . new ( :db )
6
6
def self . with_all_dbs &block
7
- %w[ mysql2 sqlite3 postgres ] . map ( &:to_sym ) . each do |db |
7
+ %w[ mysql2 sqlite3 postgres trilogy ] . map ( &:to_sym ) . each do |db |
8
8
yield new ( db )
9
9
end
10
10
end
@@ -43,7 +43,7 @@ def load_schema
43
43
id_column = case db
44
44
when :sqlite3
45
45
"id INTEGER PRIMARY KEY AUTOINCREMENT"
46
- when :mysql2
46
+ when :mysql2 , :trilogy
47
47
"id INTEGER PRIMARY KEY AUTO_INCREMENT"
48
48
when :postgres
49
49
"id SERIAL PRIMARY KEY"
Original file line number Diff line number Diff line change 7
7
port : 3306
8
8
encoding : utf8
9
9
10
+ trilogy :
11
+ adapter : trilogy
12
+ database : database_cleaner_test
13
+ username : root
14
+ password :
15
+ host : 127.0.0.1
16
+ port : 3306
17
+ encoding : utf8
18
+
10
19
postgres :
11
20
adapter : postgresql
12
21
database : database_cleaner_test
You can’t perform that action at this time.
0 commit comments