简体   繁体   English

rails通过配置文件生成模型

[英]rails generate model(s) through configuration file

There are possibilities to generate models (and migration) through a configuration file? 是否有可能通过配置文件生成模型(和迁移)? I have so much table and i want create them (all the time) with a simple step. 我的桌子太多了,我想用一个简单的步骤(一直)创建它们。

I'm holding all my migration commands in a bash shell file. 我将所有迁移命令都保存在bash shell文件中。 This allows me to "recycle" certain parts, and prevents me from making typo's... Once a command has been run, I outcomment it, but keep it present in the file 这使我可以“回收”某些零件,并防止我做错别字...一旦运行了命令,我将其注释掉,但将其保留在文件中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM