Sha256: 938e9d90b17f0aee8986840b6d023c5b2dd5d906ac3acfb595f286842c6d9bf1
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
require 'active_record/fixtures' require 'tasks/message_template' namespace :enju_message do desc "create initial records for enju_message" task :setup => :environment do Dir.glob(Rails.root.to_s + '/db/fixtures/enju_message/*.yml').each do |file| ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_message', File.basename(file, '.*')) end end desc "Send messages" task :send => :environment do MessageRequest.send_messages if defined?(EnjuMessage) end desc "upgrade enju_message" task :upgrade => :environment do MessageTemplate.transaction do update_message_template end puts 'enju_message: The upgrade completed successfully.' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_message-0.2.0.beta.2 | lib/tasks/enju_message_tasks.rake |
enju_message-0.2.0.beta.1 | lib/tasks/enju_message_tasks.rake |