Skip to content

Commit

Permalink
Investigate seed creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed May 9, 2024
1 parent 72f90b0 commit dc02bdb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,19 @@ def recreate_db

rails "assets:precompile"

rails "db:seed" if options[:seed_db]
rails "--trace db:seed" if options[:seed_db]

rails "db:test:prepare"
end

# Runs rails commands in a subprocess, and aborts if it does not succeed
def rails(*)
abort unless system("bin/rails --trace", *)
abort unless system("bin/rails", *)
end

# Runs rails commands in a subprocess silencing errors, and ignores status
def soft_rails(*)
system("bin/rails --trace", *, err: File::NULL)
system("bin/rails", *, err: File::NULL)
end

def cut(text, strip: true)
Expand Down

0 comments on commit dc02bdb

Please sign in to comment.