Sha256: f6fd2f045816038050750c807b955bae97cc358cff30bfee3b728c1dc4faedb3

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

namespace :db do
  desc "Load seed files (from db/seeds) into the current environment's database."
  task :active_seed => :environment do
    require "active_seed"
    set = ENV["set"]
    set = ::Rails.env unless !set.nil?
    ActiveSeed.seed(set)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_seed-1.0.5 lib/tasks/active_seed_tasks.rake
active_seed-1.0.4 lib/tasks/active_seed_tasks.rake