実現したいこと
- Ruby on Railsからアプリケーションに対するデータベースを作成したいです
発生している問題・エラーメッセージ
rails db:create ができないで困っていますTT
C:\Users\hejuj\Desktop\geektwitter>rails db:create rails aborted! TZInfo::DataSourceNotFound: tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install C:/Users/hejuj/Desktop/geektwitter/config/environment.rb:5:in `<main>' Caused by: TZInfo::DataSources::ZoneinfoDirectoryNotFound: None of the paths included in TZInfo::DataSources::ZoneinfoDataSource.search_path are valid zoneinfo directories. C:/Users/hejuj/Desktop/geektwitter/config/environment.rb:5:in `<main>' Tasks: TOP => db:create => db:load_config => environment (See full trace by running task with --trace)
該当のソースコード
ruby
1rails db:create
試したこと
Gemfile にgem 'tzinfo-data'を加えればいいのでしょうか...
bundle installしても出来ませんでした。
Ruby初心者なのでどなたかご教示お願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/05/02 03:47
退会済みユーザー
2022/05/02 03:50