i want generate custom app template , enable devise confirmable option,by link https://github.com/plataformatec/devise/wiki/how-to:-add-:confirmable-to-users.
i can add column , index , unique ,
#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}"
in template file,but don't know how run
user.update_all(:confirmed_at => time.now
in command line. idea?
i gotta honest, it's not totally clear you're asking, think you're saying want run 1 command update user's. can either opening rails console or using rails running:
rails runner "user.update_all(:confirmed_at => time.now)"