class method self.schema_format

Ruby on Rails 8.1.2

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Specifies the format to use when dumping the database schema with Rails’ Rakefile. If :sql, the schema is dumped as (potentially database- specific) SQL statements. If :ruby, the schema is dumped as an ActiveRecord::Schema file which can be loaded into any database that supports migrations. Use :ruby if you want to have different database adapters for, e.g., your development and test environments. This can be overridden per-database in the database configuration.

Source
# File activerecord/lib/active_record.rb, line 382
  singleton_class.attr_accessor :schema_format

Defined in activerecord/lib/active_record.rb line 382 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord

Type at least 2 characters to search.

↑↓ navigate · open · esc close