search for: delete_the_cippalippa

Displaying 1 result from an estimated 1 matches for "delete_the_cippalippa".

2006 May 09
2
Disabling FOREIGN KEYs in a Rake task
Hi, How could I disable my database FOREIGN KEYs in a Rake task? Or, how could I call the execute() method in a Rake task? I''m trying to perform something like: task :delete_the_cippalippa => :environment do require RAILS_ROOT+''/lib/marsian.rb'' # FIXME: execute() is undefined execute "SET FOREIGN_KEY_CHECKS = 0" Cippalippa.delete(-1) [..some more code..] # FIXME: as above execute "SET FOREIGN_KEY_CHECKS = 1" end...