Sha256: 806cdaed567f370abcb539a77d03520e9e6dae4b0dd89fddb2672bdaa39b4f36

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require 'active_record/fixtures'
require 'tasks/color'

desc "create initial records for enju_library"
namespace :enju_library do
  task :setup => :environment do
    Dir.glob(Rails.root.to_s + '/db/fixtures/enju_library/*.yml').each do |file|
      ActiveRecord::Fixtures.create_fixtures('db/fixtures/enju_library', File.basename(file, '.*'))
    end
  end

  desc "upgrade enju_library"
  task :upgrade => :environment do
    LibraryGroup.transaction do
      update_color
    end
    puts 'enju_library: The upgrade completed successfully.'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre40 lib/tasks/enju_library_tasks.rake
enju_library-0.1.0.pre39 lib/tasks/enju_library_tasks.rake
enju_library-0.1.0.pre38 lib/tasks/enju_library_tasks.rake
enju_library-0.1.0.pre37 lib/tasks/enju_library_tasks.rake