Category – Rails
2 posts tagged with "Rails" (See all categories)

MMigrating Data along with the Schema

05/22/20193 Min Read — In Rails, PostgreSQL

It all started with wanting to move a column from one table to another. The schema changes were straightforward enough. We wanted to keep the data as well, so that too needed to be migrated. We wrote…

TTIL: Define A Custom RSpec Matcher

04/13/20191 Min Read — In Testing, Ruby, Rails, TIL

You can define your own custom RSpec matchers. This is a great way to keep your spec tight and readable. A custom, domain-specific matcher can convey more intent in a single line than several lines of…