blog

How To Load Data From Seed & Rake Tasks

CircleCI generates its own database.yml for every build. It then creates the database using the newly created database.yml file and loads the schema. It sets the environment to 'test' and runs the test cases. I needed some data that was loaded using seed and a rake task. This data was preserved from truncation between test … Continue reading How To Load Data From Seed & Rake Tasks

Ruby Through Rails – Part 1

(This has been reblogged from Sanjiv's Blog post) I am starting a series of blog posts where we can learn Ruby through Rails. We will take a deep dive into Rails source code and learn about how Rails works -- and learn a lot of Ruby constructs through that! Which command is more efficient - … Continue reading Ruby Through Rails – Part 1