Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RailsConf 2019 - Reset Yourself Free (The Joy of Destroying your DB Daily) by Chris Waters _______________________________________________________________________________________________ Cloud 66 - Pain Free Rails Deployments Cloud 66 for Rails acts like your in-house DevOps team to build, deploy and maintain your Rails applications on any cloud or server. Get $100 Cloud 66 Free Credits with the code: RailsConf-19 ($100 Cloud 66 Free Credits, for the new user only, valid till 31st December 2019) Link to the website: https://cloud66.com/rails?utm_source=-&utm_medium=-&utm_campaign=RailsConf19 Link to sign up: https://app.cloud66.com/users/sign_in?utm_source=-&utm_medium=-&utm_campaign=RailsConf19 _______________________________________________________________________________________________ When was the last time you ran rake db:reset locally? My guess is not recently. Nor do you think of doing it frequently. And I want to persuade you that deleting your precious local environment this way is a Very Good Thing Indeed. Because, friends, db:reset will not only delete your database, but it will seed it too. And by spending quality time with your seeds file, I believe you’ll make your entire development team more productive. You’ll give your project the opportunity to grow its own shared development environment – a beautiful, idealistic place where all devs can talk through the same problem in the same context. Ready to reset with me?
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In his talk "Reset Yourself Free (The Joy of Destroying your DB Daily)" at RailsConf 2019, Chris Waters examines the importance and benefits of regularly resetting local development databases using the Rake command `db:reset` in Ruby on Rails applications. Waters argues that this practice not only helps in maintaining a clean and consistent development environment but also enhances team productivity. Key points discussed in the talk include: - **Introduction**: Chris shares his excitement about attending his first RailsConf and introduces himself, mentioning his background in building online booking systems for tourism. - **The Bottleneck Problem**: Waters describes his experience as the only full-time developer while relying on contractors, which created a bottleneck in the development process. He realized this dependency hindered team efficiency. - **The Solution - Rake DB Reset**: Emphasizing the utility of `rake db:reset`, he explains that this command not only deletes the database but also seeds it with data, thus providing developers with an immediate and consistent local environment. - **Seeding Strategies**: Waters outlines various methods for creating seeds for the database, including leveraging the `faker` gem to generate realistic sample data and organizing seed files around the application's models. He highlights the creation of seed classes for improved organization and maintenance. - **Benefits of a Reset Database**: - Instant local environment setup - Consistency among developers' environments - Increased resilience by allowing developers to reset their environments easily - Encouragement of collaborative development as team members can build and contribute to the seed database easily. - **Real-world Applications**: Waters discusses seeding complicated relationships in the database and even brings up examples of integrating with external services like Stripe. - **Conclusions**: By adopting a system where the database can be reset easily and quickly, the team saw significant improvements in speed and collaboration. Waters encourages developers to embrace the `rake db:reset` as a way to 'reset yourself free' from the constraints of traditional development environments. Overall, Waters advocates for the benefits of simplifying the onboarding process for new developers, allowing greater experimentation, and ultimately leading to a more productive development cycle. This talk is an insightful guide for Rails developers looking to improve their workflows and enhance team collaboration through effective database management.
Suggest modifications
Cancel