Handling schema.rb in version control
See original GitHub issueIt is generally recommended to commit schema.rb
file along with other file systems as mentioned here
Will it be a good idea to remove it from .gitignore
and commit it for our project too?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
What is the right approach to deal with Rails db/schema.rb file ...
Your database schema absolutely is a critical artifact and anything that important needs to be tracked in revision control. Any update/merge ...
Read more >How To Handle schema.rb Conflicts During git rebase in Rails ...
The robust approach is to rebuild the schema at each stage as follows: Before rebasing, checkout (and pull!) master and ensure that the...
Read more >How to Keep Your schema.rb Files Clean & Consistent
The schema version in schema.rb must always go up. It should never be either left untouched or going back in time. Taking these...
Read more >Tracking Database Schema And Schema Migrations In Git ...
Ben Nadel discusses tracking database schema and database schema migrations (DDLs and DMLs) in version control. This is a practice that is ...
Read more >Resolving a schema conflict during rebase in Rails
One important details about schema.rb : it should not be manually edited and it relies on a versioning system.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ankitkataria We are.
Yes, it is the recommended practice, but it is impossible to have schema.rb in version control since we support two databases at the moment. We can add them once we drop mysql support