Sha256: 62f7c979ad623f6f20cec0c0c6018ad36e832b2707c870d228364ceb0b8e5362
Contents?: true
Size: 631 Bytes
Versions: 5
Compression:
Stored size: 631 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems