By mpapis
via niczsoft.com
Published: Feb 26 2010 / 12:40
I have seen a lot of migrations, most of them was just doing what it had to do. But I found a nice way to make my migrations more pretty.
So I had an Article model, which had field :published of type :boolean , as comparing to other solutions, I found that it should be rather :publish_date of type date.
First I have created migration using “script/generate migration article_update” and got empty migration:



Add your comment