Sha256: c8d5f2922b43f2ceb571a11311da6af99447cdcb3e05664405cd5caf7f6b07f3
Contents?: true
Size: 426 Bytes
Versions: 33
Compression:
Stored size: 426 Bytes
Contents
require 'find' namespace :db do desc 'Override db:install to include demo seed data.' task :install => ["db:create", "db:migrate", "db:seed", 'db:seed_demo_site'] desc 'Load the demo site seed data from db/seeds.rb' task :seed_demo_site => 'db:abort_if_pending_migrations' do demo_seed_file = File.join(Rails.root, 'db', 'demo_site_seeds.rb') load(demo_seed_file) if File.exist?(demo_seed_file) end end
Version data entries
33 entries across 33 versions & 2 rubygems