Fix mysql travis tests
Fix ActiveRecord postgres adapter