Module | Sequel::Plugins::ClassTableInheritance::InstanceMethods |
In: |
lib/sequel/plugins/class_table_inheritance.rb
|
Delete the row from all backing tables, starting from the most recent table and going through all superclasses.
# File lib/sequel/plugins/class_table_inheritance.rb, line 244 244: def delete 245: raise Sequel::Error, "can't delete frozen object" if frozen? 246: m = model 247: m.cti_tables.reverse.each do |table| 248: m.db.from(table).filter(m.primary_key=>pk).delete 249: end 250: self 251: end