Comments (4)
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.
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.
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.
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)
- Weekly Community Check-In #151 - Don’t give up ❤️ HOT 16
- Center aligning the menu under the "Topic" link HOT 8
- The dropdown modal window should close when the user clicks outside the modal HOT 3
- Proposal: Updating the code of conduct HOT 1
- Solve class mismatch error HOT 36
- Commercials in Noida HOT 1
- Book Full Body Checkup in Bhubaneshwar HOT 1
- noaa HOT 1
- Unleashing the Potential of AI Writing Tools HOT 1
- First timer HOT 1
- Diwali Gift Box 2023: A Perfect Blend of Tradition and Happiness HOT 1
- What is DSLR Camera HOT 1
- I would llike to contribute. HOT 1
- First Contribution
- نكتب: رواد الابتكار في عالم السيو الذكي HOT 1
- minispectrophotometer PDF if missing HOT 1
- Generate Eye-Catching Superhero Images with the Superhero AI Image Generator HOT 1
- Buy Verified Cash App Account: Ensuring a Secure Digital Transaction Experience HOT 1
- Error to linking on social sites. HOT 2
- BSB Legal Consultants HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plots2.