Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以向 Oil 传递一个允许新表字段为空的参数?
就像是
oil g migration foo bar:string null baz:int
谢谢
当然,在生成迁移时,可以解析大部分用于创建表的参数。所需参数必须用冒号分隔,如下所示:
oil g migration foo bar:string:null baz:int:unsigned
最简洁的答案是不”。
您应该做的是使用允许的语法创建迁移,然后编辑位于
app/migrations.
更新迁移文件后,您可以
run oil refine migrate