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

  • Home
  • SEARCH
  • 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 4560348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:55:05+00:00 2026-05-21T17:55:05+00:00

When we start a brand new rails project we use db:seed to populate db

  • 0

When we start a brand new rails project we use db:seed to populate db data.

During project lifetime in an ActiveRecord backed project we can use migrations to change schema and data. Mongoid doesn’t support migrations.

For new fields it’s possible to use default_value option in a field declaration. But what about old one? How should I handle data changes with mongoid?

Is there a better option than to change seed.rb file and use db:seed?

Thanks in advance.

  • 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-21T17:55:05+00:00Added an answer on May 21, 2026 at 5:55 pm

    I just started using https://rubygems.org/gems/mongoid_rails_migrations for adding migrations to mongoid. Seems to work well.
    Just add the gem to your Gemfile, bundle install, and use migrations the same as in AR.

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

Sidebar

Related Questions

For http://github.com/collectiveidea/delayed_job Let's say I just start a brand new Rails project and want
We are ready to start a brand new project at work, no legacy code.
I am looking to start work on a brand-new project, something I've been thinking
I just copied an existing project to a brand new machine to start developing
I followed the following instructions to start a brand new project in eclipse http://code.google.com/webtoolkit/usingeclipse.html
I am brand new at writing Wordpress plugins, so to start I am trying
To start, I'm a pretty new to Rails I've created some methods and put
Suppose we start with a brand new setup. touch somefile git init . git
Let me start off by saying I'm brand new to Android programming. I'm using
I created a brand new view-based project and added into the viewDidLoad - (void)viewDidLoad

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.