What is db/development_structure.sql in a rails project?

后端 未结 4 964
無奈伤痛
無奈伤痛 2020-12-29 06:33

There is a development_structure.sql inside my /db folder of my rails application (rails 2.3.4, ruby 1.8.7) and I am not sure exactly what it does.

4条回答
  •  悲哀的现实
    2020-12-29 07:02

    In rails 3, you don't even have to write this line,

    config.active_record.schema_format = :sql

    You can generate this structure.sql file by simply running the above rake command mentioned above

提交回复
热议问题