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 5972871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:43:10+00:00 2026-05-22T20:43:10+00:00

Till now, i have been using Fixtures, along with a rake task to create

  • 0

Till now, i have been using Fixtures, along with a rake task to create some seed data for my database. This worked well, but i suddenly have weird problems(like getting autogen ids of 1,2,3.. in a model and then wrong ids in the join model, making the association not work at all).

Thus, i was wondering what a better alternative is. I’ve read about different things, as well as the railscast on seeding data.

My data does not really share same pieces of information. It’s like separate entries that have to be inserted as they are. For instance, think that i have to insert 1000 users that have particular abilities and skills. This needs some join models and some neat handling of the associations like fixtures do.

So, is there a better than fixtures way to accomplish that ?

  • 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-22T20:43:11+00:00Added an answer on May 22, 2026 at 8:43 pm

    Here are three different options which I use all the time. Let me know what you think and how you get on. All the best.

    Github Gist >>

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

Sidebar

Related Questions

I have been using this code to parse xml till now. Its was working
I have been using jQuery 1.23 till now and nowadays most of the plugins
I still have some confusion about this thing. What I have found till now
I have been using gcc, g++ for my C, C++ application development till now
I've been using RVM for quite some time now and have been very happy
Till now, I have been using Netbeans IDE for Java Applications. To distribute applications
I have been using Micah Carrick's PAYPAL IPN class till now for web_accept but
Till now, I have been using google charts and UIWebView to show graphs in
sorry if this is a basic question! up till now i have been creating
Up till now I have been developing my personal and school projects at home

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.