We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c179f28 commit b3fdee5Copy full SHA for b3fdee5
Rakefile
@@ -19,3 +19,20 @@ task :test do
19
sh("TARGET_DB=#{database} bin/rails test")
20
end
21
22
+
23
+namespace :test do
24
+ task :mysql do
25
+ sh("TARGET_DB=mysql bin/setup")
26
+ sh("TARGET_DB=mysql bin/rails test")
27
+ end
28
29
+ task :postgres do
30
+ sh("TARGET_DB=postgres bin/setup")
31
+ sh("TARGET_DB=postgres bin/rails test")
32
33
34
+ task :sqlite do
35
+ sh("TARGET_DB=sqlite bin/setup")
36
+ sh("TARGET_DB=sqlite bin/rails test")
37
38
+end
bin/setup
@@ -15,6 +15,4 @@ bundle
15
16
echo "Creating databases..."
17
18
-rails db:reset TARGET_DB=sqlite
-rails db:reset TARGET_DB=mysql
-rails db:reset TARGET_DB=postgres
+rails db:reset
0 commit comments