Thx, that plugin let me save lot of time.

There is only problem with polymorphic relationship.



On 10 Wrz, 09:22, Frederick Cheung <[EMAIL PROTECTED]> wrote:
> On 10 Sep 2008, at 08:15, Zirael wrote:
>
>
>
> > You are right. But it is quite difficult(get a lot of time) to create
> > these migrations by yourself. I have 30 tables, so I am looking for
> > rake etc. to generate it.
>
> Why do you want migrations if you've already got theschema? Rails  
> will dump yourschematoschema.rb. With appropriate plugins 
> (http://agilewebdevelopment.com/plugins/search?search=redhillonrails
> ) it should handle foreign keys as well.
>
> Fred
>
> > Do you have any idea?
>
> > On 9 Wrz, 14:42, Ar Chron <[EMAIL PROTECTED]> wrote:
> >> If you want to add constraints in the DB, you can always use execute
> >> within your migrations...
>
> >> execute "ALTER TABLE `projects` your SQL goes here, blah blah blah"
>
> >> Just execute the appropriate SQL statements in the self.up and  
> >> self.down
> >> methods.
> >> --
> >> Posted viahttp://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]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to