开发者

Just doing a new Rails app. Using Devise. Would like to have one more column for the user table: timezone

开发者 https://www.devze.com 2023-04-04 14:28 出处:网络
This would allow me to use it in displaying time information... Should I just keep it separate from the devise stuff? 开发者_运维技巧 Or is there an easier way?

This would allow me to use it in displaying time information...

Should I just keep it separate from the devise stuff? 开发者_运维技巧 Or is there an easier way?

Thanks!


Just add another column to your User model for storing the user's timezone in.


Just create a migration, add_timezone_to_users.

And inside def self.up write add_column :users,:timezone,

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号