migrations new style + application.rb fixes