Sha256: 472792f47c7685be63f98308829878bd230cab03b2c3e70f111fe1aa9c54d431
Contents?: true
Size: 672 Bytes
Versions: 6
Compression:
Stored size: 672 Bytes
Contents
require 'active_record/fixtures' desc "create initial records for enju_event" namespace :enju_event do task :setup => :environment do Dir.glob(Rails.root.to_s + '/db/fixtures/enju_event/*.yml').each do |file| ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_event', File.basename(file, '.*')) end end desc "import events from a TSV file" task :event_import => :environment do EventImportFile.import end desc "upgrade enju_circulation" task :upgrade => :environment do Rake::Task['statesman:backfill_most_recent'].invoke('EventExportFile') Rake::Task['statesman:backfill_most_recent'].invoke('EventImportFile') end end
Version data entries
6 entries across 6 versions & 1 rubygems