Skip to content

Commit

Permalink
Add db:prepare:with_data rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jul 2, 2023
1 parent e396dae commit 65a3b57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ namespace :db do
end
end
end

namespace :prepare do
desc "Runs setup if database does not exist, or runs data and schema migrations if it does"
task with_data: :environment do
DataMigrate::DatabaseTasks.prepare_all_with_data
end
end
end

namespace :data do
Expand Down

0 comments on commit 65a3b57

Please sign in to comment.