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 Jun 20, 2024
1 parent 553faef commit 880d94e
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 880d94e

Please sign in to comment.