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