As mentioned in @ house9's comment, you can use struct.sql instead. Add this to your application.rb project:
config.active_record.schema_format = :sql
Then run bundle exec rake db:structure:dump to create the actual SQL structure. This saves encodings and sortings (which should ideally be in schema.rb, but alas).
A โstructureโ is, by its nature, less portable than a โscheme,โ but itโs generally good that all team members and environments should use the same database and version anyway.
source share