I want to create schema.sql instead of schema.rb. After googling around I found that it can be done by setting sql schema format in application.rb. So I set fol
application.rb
It's possible you need to delete the schema.rb for the schema.sql to be created.
schema.rb
schema.sql