Fix missing constraint removal in down
Use structure.sql instead of schema.rb

schema.rb ruby format cannot represent currently used
'INITIALLY DEFERRED' option on constrains
Add missing :dependent => :destroy

to be able to destroy objects without hitting FK constraint and not to
leave garbage behind in DB