Sha256: 3355abf9aaa412a758bec966e270ea5f93c88f466cd3dcad39988174c335e6e6
Contents?: true
Size: 582 Bytes
Versions: 6
Compression:
Stored size: 582 Bytes
Contents
recipe :setup_database do description 'This will create database, then migrate and seed data' after :rvm silently do create_database do run "cd #{application_name} && rake db:create" end migrate_database do run "cd #{application_name} && rake db:migrate" end seed_database do run "cd #{application_name} && rake db:seed" end prepend_file 'db/seeds.rb' do <<-CONTENT.gsub(/^ {8}/, '') # encoding: utf-8 # Clear database Rake::Task["db:reset"].invoke CONTENT end end end
Version data entries
6 entries across 6 versions & 1 rubygems