Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:44:43+00:00 2026-05-23T10:44:43+00:00

I have a Rails 3 project with the following in my Gemfile… group :development,

  • 0

I have a Rails 3 project with the following in my Gemfile…

group :development, :test do
  gem 'factory_girl_rails', '~> 1.1.beta1'
end

I also have several factory definitions in spec/factories.rb which my tests are using successfully. I would like to use these factories to populate my development database from time to time.

Is there anyway I can get Rail’s db:fixtures:load rake task to load the factories defined in spec/factories.rb instead of the Yaml fixtures in test/fixtures? If not, is there another rake task in factory_girl_rails or Rails that would load the data generated by my factory definitions?

Pretty sure the best approach is to just write my own rake task to accomplish this but wanted to check here first.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:44:43+00:00Added an answer on May 23, 2026 at 10:44 am

    An alternative way could be to make your seeds.rb file load this for you.

    Just prepend the factories with if Rails.env == "test"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Rails project I have the following code: auto_link( h( wrap_long_string(post.text,50) )).gsub(/\n/,<br />)
This is not a ruby/rails project deploy. I have the following situation and I
I am charged with the following task in a Rails project. Clients will have
I have a successful Rails 3.0.x project with the following subset of Gems in
In my Rails project I currently have the following: = f.label :created_at_gteq = f.text_field
I have got an existing Rails project (Rails 2.3.8) and I got following Model
I am new to Rails. I have following construction. Mainmenu in my project has
We have a build pipeline in the Rails project: we bundle and test application
I have a rails project and keep getting the following error when trying to
I have a Rails 3.1.1 Project using the Gem ActiveFrom an extension of ActiveModel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.