On Mar 15, 9:39 am, Christian MICHON <[email protected]> wrote: > Hi, > > since this question may find answers in either mailing list (ramaze or > sequel), I'm sending this to both. Sorry for the noise. > > I'm trying to migrate the following screencast from rails to ramaze, > as part of a potential > showcase:http://teachmetocode.com/screencasts/creating-a-twitter-clone-in-rail... > > Around time-stamp 10'45'', the speaker mentions about adding a > dependency so that when a user gets deleted, so get all his flits... > > I've already coded my models and I'm checking that this part under > sequel/ramaze, and I cannot make it work. > > I've the following lines in my code: > > class User < Sequel::Model > one_to_many :flits, :dependent => :destroy > end
That's looks like a combination of Sequel and ActiveRecord syntax. Sequel has never supported that. For something similar, use the association_dependencies plugin that ships with Sequel: http://sequel.rubyforge.org/rdoc-plugins/classes/Sequel/Plugins/AssociationDependencies.html Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-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/sequel-talk?hl=en.
