Sha256: 9e0e82f506ed0c97ff9dd9bb79c215bf8e7ad42e9b3186edb71b2c888954ef41
Contents?: true
Size: 427 Bytes
Versions: 9
Compression:
Stored size: 427 Bytes
Contents
# Ensure that the database has *a* config. unless File.exist?(db_yml = File.expand_path('../config/database.yml', __FILE__)) require 'fileutils' FileUtils.cp "#{db_yml}.sqlite3", db_yml puts "Copied #{db_yml}.sqlite3 to #{db_yml}" puts "Migrating..." puts `bundle exec rake -f #{__FILE__} db:migrate` end require File.expand_path('../config/application', __FILE__) require 'rake' RefineryApp::Application.load_tasks
Version data entries
9 entries across 9 versions & 1 rubygems