teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

User.rbを追記しました。

2020/02/29 13:46

投稿

yenyen
yenyen

スコア7

title CHANGED
File without changes
body CHANGED
@@ -87,7 +87,17 @@
87
87
 
88
88
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
89
89
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
90
+ ```
90
91
 
92
+ ```User
93
+ class User < ApplicationRecord
94
+ # Include default devise modules. Others available are:
95
+ # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
96
+ devise :database_authenticatable, :registerable,
97
+ :recoverable, :rememberable, :validatable
98
+
99
+ has_one name :profile, dependent: :destroy
100
+ end
91
101
  ```
92
102
 
93
103
  ### 試したこと