Sha256: 2554be3f5efb72ee93a8b381470dea6b9d8f12f7866818b98d0f642b3d6a6d04
Contents?: true
Size: 587 Bytes
Versions: 7
Compression:
Stored size: 587 Bytes
Contents
require 'active_record/fixtures' require 'tasks/subject_type' require 'tasks/subject_heading_type' 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::FixtureSet.create_fixtures('db/fixtures/enju_subject', File.basename(file, '.*')) end puts 'initial fixture files loaded.' end #desc "upgrade enju_subject" #task :upgrade => :environment do # puts 'enju_subject: The upgrade completed successfully.' #end end
Version data entries
7 entries across 7 versions & 1 rubygems