If use of database-specific datatypes (such as :double, for higher precision than :float) is critical to your project, use the config.active_record.schema_format = :sql setting in config/application.rb to make Rails dump schema information in native
SQL DDL format rather than its own cross-platform compatible Ruby code, via the db/schema.rb file.