Sha256: a933d973bac607f289a340368e91b028f4d6adf7867d039968b9c8d8ede7e067
Contents?: true
Size: 484 Bytes
Versions: 14
Compression:
Stored size: 484 Bytes
Contents
require 'active_record/fixtures' desc "create initial records for enju_circulation" namespace :enju_circulation do task :setup => :environment do Dir.glob(Rails.root.to_s + '/db/fixtures/enju_circulation/*.yml').each do |file| ActiveRecord::Fixtures.create_fixtures('db/fixtures/enju_circulation', File.basename(file, '.*')) end Rake::Task['enju_event:setup'].invoke Rake::Task['enju_message:setup'].invoke puts 'initial fixture files loaded.' end end
Version data entries
14 entries across 14 versions & 1 rubygems