Rails ã§ã¯ãDB ã® Time å ãæ±ããã¨ãã§ãã¾ããããã¯æ¥ä»ãå¿ è¦ã¨ãããæéã ããæ ¼ç´ãããã¨ãã«ä½¿ãã¾ãã å®ç¾©æ¹æ³ã¯ãä»ã®åã¨åãã add_column ã¡ã½ãããªã©ã§ time ãæå®ããã ãã§ãã add_column :users, :lunch_time, :time ãã ãããã使ããã¨ããã«ã¯ã¡ãã£ã¨ãããã¦ãã¦ãå¿ è¦ã§ãã Ruby ã Rails ã«ã¯ãæéã®ã¿ãæ±ãã¯ã©ã¹ã¯ããã¾ãããDB ã® Time å㯠Ruby ã® Time ãªãã¸ã§ã¯ãã«å¤æããã¾ããTime ãªãã¸ã§ã¯ãã¯å¹´ææ¥ã®æ å ±ãæã£ã¦ãã¾ãããã®éãã¿ã¤ã ã¾ã¼ã³ã¯ utc (æ£ç¢ºã«ã¯ ActiveRecord::Base.default_timezone ã§è¨å®ãããã¿ã¤ã ã¾ã¼ã³) ã¨ãã¦æ±ããã¾ãã lunch_time ã«ã©ã ã« 12:00 ãæ ¼ç´ããã¦ããå ´åã次ã®ãããª
{{#tags}}- {{label}}
{{/tags}}