我想通过链接 https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users使用模板生成自定义应用程序并启用设计可确认选项。
我可以添加 column , index , unique , by
#add confirmable
confirm_cols='confirmation_token:string:index:unique confirmed_at:datetime confirmation_sent_at:datetime'
run "rails g migration add_confirmable_to_user #{confirm_cols}"
在我的模板文件中,但我不知道如何运行
User.update_all(:confirmed_at => Time.now
在命令行中。任何想法?