Giter Club home page Giter Club logo

Comments (4)

sirMackk avatar sirMackk commented on September 13, 2024

I've seen points for and against keeping schema.rb under source control, but I'd vote for not tracking it.

The schema.rb file will be updated in both production and development environments when migrations are run, which will ensure a "healthy" way to evolve the schema as time passes and models are added or removed. Plus it'll help avoid committing outdated schema files due to not checking the current version and such.

from plots2.

jywarren avatar jywarren commented on September 13, 2024

how shall we safely do this? it's OK for me to untrack schema.rb and just check it out, but future coders may run into trouble if they don't take precautions. I'm tempted to version track a copy as schema.rb.example for a little while...

from plots2.

btbonval avatar btbonval commented on September 13, 2024

I don't have this problem with any of my two rails projects, but I do have
problems with Gemfile.lock on the other project.

So I'm just popping in my head to say I have no idea.

An example file is good if schema.rb cannot be compiled/built from the
models and migrations.

On Fri, May 2, 2014 at 12:33 PM, Jeffrey Warren [email protected]:

how shall we safely do this? it's OK for me to untrack schema.rb and just
check it out, but future coders may run into trouble if they don't take
precautions. I'm tempted to version track a copy as schema.rb.example for a
little while...


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

from plots2.

jywarren avatar jywarren commented on September 13, 2024

schema.rb should be easy to build from migrations. Thats how ive always
started rails apps... With rake db:migrate. But I'm starting to think that
I missed a memo about that and that lots of people skip the migrations and
build directly from the schema and seeds files.
On May 2, 2014 12:39 PM, "Bryan Bonvallet" [email protected] wrote:

I don't have this problem with any of my two rails projects, but I do have
problems with Gemfile.lock on the other project.

So I'm just popping in my head to say I have no idea.

An example file is good if schema.rb cannot be compiled/built from the
models and migrations. If you're using South with migration files for all
models, then there's probably no need to maintain schema.rb.

On Fri, May 2, 2014 at 12:33 PM, Jeffrey Warren [email protected]:

how shall we safely do this? it's OK for me to untrack schema.rb and
just
check it out, but future coders may run into trouble if they don't take
precautions. I'm tempted to version track a copy as schema.rb.example
for a
little while...


Reply to this email directly or view it on GitHub<
https://github.com/publiclab/plots2/issues/48#issuecomment-42050995>
.


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

from plots2.

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.