Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 262 Bytes

File metadata and controls

6 lines (4 loc) · 262 Bytes

schema_format

config.active_record.schema_format 决定生成什么 schema 文件及其内容。

设置为 :ruby (默认)则生成 schema.rb 文件,里面是 Ruby 代码;
设置为 :sql 则生成 structure.sql 文件,里面是 SQL 代码。