Can I pass default value to rails generate migration?

后端 未结 4 919
执念已碎
执念已碎 2020-12-29 19:39

I want to know if I can pass a default value to the rails g migration command. Something like:

 $ rails generate migration add_         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 20:08

    Rails 3.2 does not seem to support any kind of command line type modifier based on http://guides.rubyonrails.org/v3.2/migrations.html

    The documentation for Rails 4.1 refers to type modifiers but the documentation for Rails 3.2 does not mention the word "modifier" in the page.

提交回复
热议问题