Git Product home page Git Product logo

Comments (4)

amxn avatar amxn commented on May 28, 2024

While it's true that rake db:schema:load is the proper method to build a db, the migrations would still be required if any rake db:rollback operations are to be performed. Rollbacks affect the schema and the db it corresonds to.

from selfstarter.

kvirani avatar kvirani commented on May 28, 2024

I'm assuming you're referring to my comment about deleting migrations...

I was referring to deleting migrations that are old, not recent. And
moreover I was saying that to make the point that they should be not
considered definitive.

I'll also add that migrations that work fine today will sometimes even fail
months in the future, especially if things get renamed. Further proof that
migrations should not be used to build up a db.

Anyway, are you agreeing that the instructions should be changed, or do you
feel it should stay as is?

Khurram Virani

On Sat, Nov 23, 2013 at 9:04 PM, Mohammed Ameen [email protected]:

While it's true that rake db:schema:load is the proper method to build a
db, the migrations would still be required if any rake db:rollbackoperations are to be performed. Rollbacks affect the schema and the db it
corresonds to.


Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-29149083
.

from selfstarter.

amxn avatar amxn commented on May 28, 2024

rake db:schema:load or rake db:setup which essentially is a shortcut for rake db:create && rake db:schema:load && rake db:seed is usually how we create db's on new projects/machines.

I'd agree with changing the instructions as recreating a db overtime solely through migrations would not be feasible (essentially if later migrations affect older ones or any irreversible migrations are performed)

Also if you strongly feel that the instructions are to be changed edit the readme and send in a pull request with the updated instructions for recreating the db.

from selfstarter.

kvirani avatar kvirani commented on May 28, 2024

Great, will do. Thanks

Khurram Virani

On Sat, Nov 23, 2013 at 10:10 PM, Mohammed Ameen
[email protected]:

rake db:schema:load or rake db:setup which essentially is a shortcut for rake
db:create && rake db:schema:load && rake db:seed is usually how we create
db's on new projects/machines.

I'd agree with changing the instructions as recreating a db overtime
solely through migrations would not be feasible (essentially if later
migrations affect older ones or any irreversible migrations are performed)

Also if you strongly feel that the instructions are to be changed edit the
readme and send in a pull request with the updated instructions for
recreating the db.


Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-29149719
.

from selfstarter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.