Remise en place de quelques données de test pour une éventuelle nouvelle instance
This commit is contained in:
parent
3e43861323
commit
e68dbedc50
10
db/seeds.rb
10
db/seeds.rb
@ -10,11 +10,11 @@
|
|||||||
# 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)
|
||||||
|
|
||||||
# City.create name: 'Rennes'
|
City.create name: 'Rennes'
|
||||||
# Region.create name: 'Bretagne'
|
Region.create name: 'Bretagne'
|
||||||
# Region.create name: 'My very first region'
|
Region.create name: 'My very first region'
|
||||||
# User.create login: 'admin@example.com', email: 'admin@example.com',
|
User.create login: 'admin@example.com', email: 'admin@example.com',
|
||||||
# password: 'password'
|
password: 'password'
|
||||||
|
|
||||||
AdminUser.create email: 'admin@example.com', password: 'password'
|
AdminUser.create email: 'admin@example.com', password: 'password'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user