开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜