posted to this is not a weblog
on may 8th, 2008

tagged activerecord, FUCKFUCKFUCK, rails, ruby
and never commented on

share this page

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.

leave the first comment or contact me

if you want to be able to mark your comment as authentic or delete it later, include your e-mail address (it won't be shown on the site). you'll be e-mailed instructions with a copy of your comment.

basic html allowed; be nice
required


optional


optional