Sha256: 8c78ff3046f2c0c6b1cc05d14abf8fa2e4f7e3c9f32783b691b9cae4c50a111b
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
namespace :db do namespace :development do desc "Run all seeds for development" task :seed => :environment do Rake::Task["db:abort_if_pending_migrations"].invoke Rake::Task["db:seed"].invoke load NamedSeeds::Railtie.send(:seed_file) end end namespace :test do desc "Run the seed data from db/test/seeds.rb" task :seed => :environment do Rake::Task["db:abort_if_pending_migrations"].invoke NamedSeeds::Railtie.load_seed end end end task 'test:prepare' => 'db:test:seed'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
named_seeds-1.0.3 | lib/named_seeds/railties/databases.rake |
named_seeds-1.0.2 | lib/named_seeds/railties/databases.rake |