fix current schema logic in schema.rb