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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:40:13+00:00 2026-06-05T19:40:13+00:00

Is is correct to assume that migrations in ruby on rails are simply updates

  • 0

Is is correct to assume that migrations in ruby on rails are simply updates to any database. And that the rake db:migrate script only serves to actualize these changes?

  • 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-06-05T19:40:14+00:00Added an answer on June 5, 2026 at 7:40 pm

    Yes.

    Migrations are a convenient way for you to alter your database in a
    structured and organized manner. You could edit fragments of SQL by
    hand but you would then be responsible for telling other developers
    that they need to go and run them. You’d also have to keep track of
    which changes need to be run against the production machines next time
    you deploy.

    Active Record tracks which migrations have already been run so all you
    have to do is update your source and run rake db:migrate. Active
    Record will work out which migrations should be run. It will also
    update your db/schema.rb file to match the structure of your database.

    Migrations also allow you to describe these transformations using
    Ruby. The great thing about this is that (like most of Active Record’s
    functionality) it is database independent: you don’t need to worry
    about the precise syntax of CREATE TABLE any more than you worry about
    variations on SELECT * (you can drop down to raw SQL for database
    specific features). For example you could use SQLite3 in development,
    but MySQL in production.

    Source: Ruby on Rails Guides: Migrations

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

Sidebar

Related Questions

Is it correct to assume that GetLastError (and variants) are per-thread or is it
Assume that the database connection is good, the table name and column name are
Am I correct to assume that this logic (explained in the comment), is incorrect?
Let us assume that we have a simple UI that has only one state
Is it correct to assume that JQuery is not actually an implementation of ECMA
Is it correct to assume that the total memory consumption (virtual + physical) of
Would it be correct to assume that a controller class is the same as
Is it correct to assume that calling a static method is fast compared to
With Rails 3, the default session storage mechanism is cookie_store. I assume that this
Am I correct in saying it is TSQL? I am a novice at database

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.