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

Version Path
enju_subject-0.2.3 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.2 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.1 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.0 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.0.beta.5 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.0.beta.4 lib/tasks/enju_subject_tasks.rake
enju_subject-0.2.0.beta.3 lib/tasks/enju_subject_tasks.rake