We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
db:
1 parent c51c83b commit b85f41bCopy full SHA for b85f41b
lib/spring/client/rails.rb
@@ -22,6 +22,8 @@ def call
22
23
if COMMANDS.include?(command_name)
24
Run.call(["rails_#{command_name}", *args.drop(2)])
25
+ elsif command_name.start_with?("db:")
26
+ Run.call(["rake", *args.drop(1)])
27
else
28
require "spring/configuration"
29
ARGV.shift
test/support/acceptance_test.rb
@@ -630,6 +630,12 @@ def exec_name
630
app.env["DISABLE_SPRING"] = "1"
631
refute_output_includes "bin/rails runner ''", stderr: "WARN"
632
end
633
+
634
+ test "rails db:migrate" do
635
+ assert_speedup do
636
+ 2.times { app.run "bin/rails db:migrate" }
637
+ end
638
639
640
641
0 commit comments