Public Gists by jondahl

gist: 170059 9 lines of code to add a :d...
Gravatar
Tue Aug 18 16:56:06 -0700 2009
1
2
3
when :restrict
  method_name = "has_many_dependent_restrict_for_#{reflection.name}".to_sym
  define_method(method_name) do
gist: 91930 Rake task to anonymize data
Gravatar
Wed Apr 08 11:59:39 -0700 2009
1
2
3
#
# Copyright (c) 2009 Jonathan Dahl
#
gist: 73490 Rake task to look for all i...
Gravatar
Tue Mar 03 11:56:24 -0800 2009
1
2
3
namespace :db do
  namespace :data do
    desc "Find all invalid ActiveRecord records"