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

Version Path
browsercms-artirix-4.0.4 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.3.3 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.3.2 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.3.1 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.3 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.2 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.1.1 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-artirix-4.0.0.rc1.art4 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-4.0.0.rc1 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-4.0.0.beta lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-4.0.0.alpha lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.7 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.6 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.5 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.4 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.3 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.2 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.1 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.0 lib/generators/browser_cms/demo_site/templates/demo_site.rake
browsercms-3.5.0.rc3 lib/generators/browser_cms/demo_site/templates/demo_site.rake