Sha256: 145a3ecf13abe75951ca7e580b328d2c68e1c7afb23e02bb588dfa95ce3a0791

Contents?: true

Size: 601 Bytes

Versions: 11

Compression:

Stored size: 601 Bytes

Contents

require "active_record/fixtures"

namespace :seed do
  desc "seed the database with fixtures from spec/fixtures"
  task with_social_networking_fixtures: :environment do
    if Rails.env.production?
      puts "ERROR: You should not seed production database with fixtures."
    else
      path = File.join(File.dirname(__FILE__), "..", "..", "spec", "fixtures")
      ActiveRecord::FixtureSet.create_fixtures path, [
        "social_networking/goals", :"social_networking/profiles",
        :"social_networking/profile_questions",
        :"social_networking/profile_answers"
      ]
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
social_networking-0.11.8 lib/tasks/seed.rake
social_networking-0.11.7 lib/tasks/seed.rake
social_networking-0.11.6 lib/tasks/seed.rake
social_networking-0.11.5 lib/tasks/seed.rake
social_networking-0.11.4 lib/tasks/seed.rake
social_networking-0.11.3 lib/tasks/seed.rake
social_networking-0.11.2 lib/tasks/seed.rake
social_networking-0.11.1 lib/tasks/seed.rake
social_networking-0.11.0 lib/tasks/seed.rake
social_networking-0.10.0 lib/tasks/seed.rake
social_networking-0.9.3 lib/tasks/seed.rake