Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5826: drop_cascade.diff

File drop_cascade.diff, 0.6 kB (added by Manuel Holtgrewe <purestorm@ggnore.net>, 2 years ago)
  • activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

    old new  
    339339        execute "DROP INDEX #{index_name(table_name, options)}" 
    340340      end 
    341341 
     342      def drop_table(name) #:nodoc 
     343        execute "DROP TABLE #{name} CASCADE" 
     344      end 
     345 
    342346      private 
    343347        BYTEA_COLUMN_TYPE_OID = 17 
    344348        TIMESTAMPOID = 1114