Custom Data Types in Rails

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s