Skip to content

Commit

Permalink
Added db:schema.rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
dalezak committed Feb 19, 2022
1 parent 0556aee commit 4dd5dbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/db/schema.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Rake::Task["assets:precompile"].enhance do
unless Rails.env.development? || Rails.env.test?
puts "rake db:migrate..."
Rake::Task["db:migrate"].invoke
puts "db:schema:cache:dump..."
Rake::Task["db:schema:cache:dump"].invoke
end
end

0 comments on commit 4dd5dbc

Please sign in to comment.