Gistflow

  • login

migration

Nothing to display jet.

History
Show

Adding a Non-null Column with no Default Value in a Rails Migration by killthekitten

Ed7bc4d137dba9171b03d3f9b44d0086?size=52

I found that one of the original Spree 1.3.0 migrations is broken for rolling back because of several reasons.

One of the reasons is that down method adds price without :null => false option.

It was done, I think, because it's hard to define :null => false column without :default option. More under the cut

December 27, 2012
Tweet
1

Smarter migrations with capistrano in your Rails app by makaroni4

E302c3320cd14b02cbe237b479d7f884?size=52

Quite often in #capistrano recipes I see running migrations and assets precompilation on each deploy which I think is not what you want because it takes time and if there is no new migrations or assets its time is spent in vain. In this post I will show you a script which is used in #gistflow to skip #migrations. More under the cut

September 28, 2012
Tweet
4

How to safely delete migration in Rails by makaroni4

E302c3320cd14b02cbe237b479d7f884?size=52

In running #rails application there could be hundreds of #migration files and one should definitely delete invalid ones. More under the cut

April 19, 2012
Tweet
0

About

Join gistflow developers community

  • Start your developer blog in a minute.
  • Share code-related posts.
  • Follow users, subscribe for tags.
  • Use gist.github.com gists to write posts.

Sign up through GitHub

Tell friends about us

Tags

  • #ruby
  • #rails
  • #gistflow
  • #javascript
  • #activerecord
  • #gem
  • #git
  • #bash
  • #mac
  • #shell
  • #html
  • #rspec
  • #coffeescript
  • #github
  • #capistrano
  • Posts leaderboard
  • Tags cloud
  • Create issue
  • Email us
<g>

© 2013 Gistflow with Evrone