no comments posted on thursday, may 8th, 2008

activerecord, your default and static :force => true setting has fucked me over for the last time.

module ActiveRecord
  class SchemaDumper
  private
    alias :original_table :table
    def table(table, stream)
      (d = self.send(:original_table, table, StringIO.new)).rewind
      stream.print d.read.gsub(/, :force => true/, "")
    end
  end
end

i don't understand why anyone would make a default option eat all of your database tables.

no comments