更新时间:2023-12-01 14:25:28
嗯,这可能是一个 rails 错误,但你总是可以用这个来生成你的数据库结构:
Well, this could be a rails bug, but you can always generate your db structure with this:
rake db:structure:dump
这将使用 SQL 中的数据库结构为您生成一个#{Rails.env}.sql"文件.
This is going to generate an "#{Rails.env}.sql" file for you with your database structure in SQL.