We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f62320 commit bac20f5Copy full SHA for bac20f5
db/seeds.rb
@@ -5,3 +5,10 @@
5
#
6
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
# Mayor.create(name: 'Emanuel', city: cities.first)
8
+
9
+if Rails.env.development?
10
+ user = User.find_or_initialize_by(email: "a@a.a")
11
+ user.password = "password"
12
+ user.skip_confirmation!
13
+ user.save!
14
+end
0 commit comments