How to recognize migration direction (up or down) with Rails 3 style migrations (def change)?

In this case I think you'll have to use up and down methods as usual. Don't worry, despite the addition of change in Rails 3 those methods aren't, as far as I know, bound for the chopping block. Continue using them where necessary.

In this case I think you'll have to use up and down methods as usual. Don't worry, despite the addition of change in Rails 3 those methods aren't, as far as I know, bound for the chopping block. Continue using them where necessary.

Edit: Here's an option: Override migrate. Class AddFuzzToProduct 'fuzzy' } end end end Thoughts?

I know I can define up and down instead of change, but I'd prefer using change if possible, since it reduces duplication. But I guess I'll have to use them if there's no other option :( – szeryf Oct 6 at 20:10 1 @szeryf Take a look at my updated answer. Hopefully this will be useful to you, and I think it should be pretty robust with regard to ActiveRecord::Migration's API.

– Jordan Oct 6 at 20:24 Thanks, this looks good! – szeryf Oct 7 at 15:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions