質問編集履歴

1

User.rbを追記しました。

2020/02/29 13:46

投稿

yenyen
yenyen

スコア7

test CHANGED
File without changes
test CHANGED
@@ -176,12 +176,32 @@
176
176
 
177
177
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
178
178
 
179
-
180
-
181
179
  ```
182
180
 
183
181
 
184
182
 
183
+ ```User
184
+
185
+ class User < ApplicationRecord
186
+
187
+ # Include default devise modules. Others available are:
188
+
189
+ # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
190
+
191
+ devise :database_authenticatable, :registerable,
192
+
193
+ :recoverable, :rememberable, :validatable
194
+
195
+
196
+
197
+ has_one name :profile, dependent: :destroy
198
+
199
+ end
200
+
201
+ ```
202
+
203
+
204
+
185
205
  ### 試したこと
186
206
 
187
207