There was an error while loading. Please reload this page.
1 parent cc2d5e6 commit 159b6beCopy full SHA for 159b6be
lib/tasks/core_tasks.rake
@@ -36,4 +36,13 @@ namespace :test do
36
Rake::Task['db:create'].invoke
37
system "rake db:migrate test"
38
end
39
+
40
+ desc 'Copy database.yml files for running tests'
41
+ task :setup do
42
+ drivers = %w(jdbcmysql mysql postgres sqlite3).each do |driver|
43
+ source = File.join('config', "database.#{driver}.yml.example")
44
+ destination = File.join('config', "database.#{driver}.yml")
45
+ cp(source, destination, :verbose => true)
46
+ end
47
48
0 commit comments