Commit 8cb0cc71 by Truong Ba Dieu

Add seed admin

parent 1979f8b2
...@@ -5,3 +5,6 @@ ...@@ -5,3 +5,6 @@
# #
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first) # Mayor.create(name: 'Emanuel', city: cities.first)
User.create(name: "admin", email: "admin@gmail.com", password: "abc123456") if User.find_by(email: "admin@gmail.com").blank?
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment