>

Best Year Ever

Written by Adam Schepis

Originally Published 2015-10-20 00:00:00 UTC

(leave your thoughts)

Comments on "Best Year Ever"

Back to the article.
>

Don't be a 10x developer. Be a force multiplier

Written by Adam Schepis

Originally Published 2015-07-22 13:15:00 UTC

(leave your thoughts)

Comments on "Don't be a 10x developer. Be a force multiplier"

Back to the article.
>

The Gloves are Off

Written by Adam Schepis

Originally Published 2015-03-25 16:38:00 UTC

(leave your thoughts)

Comments on "The Gloves are Off"

Back to the article.
>

Keeping Pace

Written by Adam Schepis

Originally Published 2014-12-23 13:10:00 UTC

(leave your thoughts)

Comments on "Keeping Pace"

Back to the article.
>

A Fresh Coat of Paint

Written by Adam Schepis

Originally Published 2014-10-09 11:09:00 UTC

(leave your thoughts)

Comments on "A Fresh Coat of Paint"

Back to the article.
>

Integrating Heroku addon SSO in Rails using Devise

Written by Adam Schepis

Originally Published 2012-04-30 14:24:28 UTC

(leave your thoughts)

Comments on "Integrating Heroku addon SSO in Rails using Devise"

Back to the article.
>

Adding to a Devise model after creation (Rails 3.1)

Written by Adam Schepis

Originally Published 2011-09-26 08:36:06 UTC

(leave your thoughts)

This blog post is going to be fairly light on content, but it was something I googled quite a bit this weekend until i realized that Rails 3.1 provides a pretty awesome option.

The problem I had is that i have an existing Devise model and I wanted to add the :confirmable trait to that model so that when a user registers they have to provide a valid email address in order to use the site. One suggestion online was to just regenerate the model and use the newer migration but that seemed like overkill. Another answer was to add the columns yourself. The "up" migration was easy and just involved modifying the table to add "t.confirmable" which would generate the proper columns. The "down" migration was ugly though because you had to have knowledge of each column that devise would add when you put confirmable.

A better solution? Rails 3.1 Reversible Migrations to the rescue! If you are using rails 3.1 instead of having "up" and "down" methods you can just have a "change" method and for the most part, Rails and ActiveRecord are smart enough to figure out how to migrate that up and down (there are a few caveats, such as removing columns when migrating up.) So in the end, the code to add confirmable columns to the DB was quite simple:

{% gist 1240114 %}

Comments on "Adding to a Devise model after creation (Rails 3.1)"

Back to the article.
>

Why I Go Home: A Developer Dad's Manifesto

Written by Adam Schepis

Originally Published 2011-09-15 14:31:54 UTC

(leave your thoughts)

Comments on "Why I Go Home: A Developer Dad's Manifesto"

Back to the article.
>

A Script to Update Riak Config Files

Written by Adam Schepis

Originally Published 2011-08-25 08:42:08 UTC

(leave your thoughts)

Comments on "A Script to Update Riak Config Files"

Back to the article.
>

Break the Build!

Written by Adam Schepis

Originally Published 2011-07-19 13:20:09 UTC

(leave your thoughts)

Comments on "Break the Build!"

Back to the article.
>

Drinking from a Firehose

Written by Adam Schepis

Originally Published 2011-06-27 06:36:24 UTC

(leave your thoughts)

Comments on "Drinking from a Firehose"

Back to the article.
>

Setting up a 3 Node Riak Cluster with EC2 Cluster Compute Instances

Written by Adam Schepis

Originally Published 2011-06-06 13:49:02 UTC

(leave your thoughts)

Comments on "Setting up a 3 Node Riak Cluster with EC2 Cluster Compute Instances"

Back to the article.
>

Nostalgia be damned! I'll never go back to spinning hard drives.

Written by Adam Schepis

Originally Published 2011-05-27 12:54:11 UTC

(leave your thoughts)

Comments on "Nostalgia be damned! I'll never go back to spinning hard drives."

Back to the article.
>

Of Heroes and Pit Crews: Bringing techniques from the surgical world to software

Written by Adam Schepis

Originally Published 2011-05-16 20:10:20 UTC

(leave your thoughts)

Comments on "Of Heroes and Pit Crews: Bringing techniques from the surgical world to software"

Back to the article.
>

Still Bullish on the Cloud

Written by Adam Schepis

Originally Published 2011-05-14 20:33:14 UTC

(leave your thoughts)

Comments on "Still Bullish on the Cloud"

Back to the article.
>

Oops! Got Popular.

Written by Adam Schepis

Originally Published 2011-05-02 10:07:44 UTC

(leave your thoughts)

Comments on "Oops! Got Popular."

Back to the article.
>

I'm Adam, and i'm a recovering Singleton addict.

Written by Adam Schepis

Originally Published 2011-05-02 06:17:32 UTC

(leave your thoughts)

Comments on "I'm Adam, and i'm a recovering Singleton addict."

Back to the article.
>

Productivity: Go for the quick win!

Written by Adam Schepis

Originally Published 2011-04-19 06:18:09 UTC

(leave your thoughts)

Comments on "Productivity: Go for the quick win!"

Back to the article.
>

Development Complexity vs. Operational Complexity

Written by Adam Schepis

Originally Published 2011-04-05 06:43:50 UTC

(leave your thoughts)

Comments on "Development Complexity vs. Operational Complexity"

Back to the article.
>

Local. Ad-hoc. Relevant.

Written by Adam Schepis

Originally Published 2011-03-24 20:57:29 UTC

(leave your thoughts)

Comments on "Local. Ad-hoc. Relevant."

Back to the article.
>

Offline testing of network driven apps

Written by Adam Schepis

Originally Published 2011-03-24 20:27:11 UTC

(leave your thoughts)

Comments on "Offline testing of network driven apps"

Back to the article.
>

Thoughts on Yobongo after a night stranded in SFO.

Written by Adam Schepis

Originally Published 2011-03-17 20:29:20 UTC

(leave your thoughts)

Comments on "Thoughts on Yobongo after a night stranded in SFO."

Back to the article.
>

One More Reason to Fight Against Walled Gardens

Written by Adam Schepis

Originally Published 2011-03-11 20:53:58 UTC

(leave your thoughts)

Comments on "One More Reason to Fight Against Walled Gardens"

Back to the article.
>

Taking a screenshot of a section of a UIView

Written by Adam Schepis

Originally Published 2011-03-06 20:32:33 UTC

(leave your thoughts)

Comments on "Taking a screenshot of a section of a UIView"

Back to the article.
>

Handling many UIAlertViewDelegate callbacks in the same class

Written by Adam Schepis

Originally Published 2011-02-28 16:52:54 UTC

(leave your thoughts)

Comments on "Handling many UIAlertViewDelegate callbacks in the same class"

Back to the article.
>

Pure-FTPd + Passive FTP on Amazon EC2

Written by Adam Schepis

Originally Published 2011-02-23 22:36:15 UTC

(leave your thoughts)

Comments on "Pure-FTPd + Passive FTP on Amazon EC2"

Back to the article.
>

Lets try this again...

Written by Adam Schepis

Originally Published 2011-02-23 02:45:15 UTC

(leave your thoughts)

Comments on "Lets try this again..."

Back to the article.