タイムゾーンの設定
application.rb に設定しました。
code:ruby
module ToyApp
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.0
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
# Rails5.2から。SQLite3でのbooleanを数値で扱う
config.active_record.sqlite3.represent_boolean_as_integer = true
# TZをJSTに変更します
config.time_zone = 'Tokyo'
end
end