Marnen,
thanks :) Seed-fu and seed.rb - something for me to read on :D
cheers :)


On 5 March 2010 00:18, Marnen Laibow-Koser <[email protected]> wrote:

> Gordon Yeong wrote:
> > good idea but i would still like to learn how to share variables in a
> > given
> > migration.
> >
> >  Ideas, gents? :) thanks :)
>
> up and down are class methods. You share variables between them just
> like you would between any class methods in Ruby.
>
> However, your original example is problematic. You appear to be using
> migrations for seed data. This is a terrible idea. Use seed.rb or
> seed-fu instead.
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to