1
0
Fork 0
dokkan-data-rails/db/seeds.rb

55 lines
960 B
Ruby
Raw Normal View History

2015-10-06 13:55:12 -04:00
types = [
['Physical', 'PHY', 'yellow'],
['Intellect', 'INT', 'purple'],
['Technique', 'TEQ', 'green'],
['Agility', 'AGL', 'blue'],
['Strength', 'STR', 'red'],
]
rarities = [
['Normal', 'N'],
['Rare', 'R'],
['Super Rare', 'SR'],
['Super Super Rare', 'SSR'],
['Ultra Rare', 'UR'],
]
awaken_types = [
'Super',
'Extreme',
]
2015-10-20 14:36:50 -04:00
stat_types = [
['HP', 'Health Points'],
['ATK', 'Attack'],
['DEF', 'Defense'],
2015-11-09 12:11:53 -05:00
['Cost', 'Cost'],
2015-10-20 14:36:50 -04:00
]
2015-10-08 15:18:21 -04:00
roles = [
:admin,
:moderator,
:user,
:guest,
]
2015-10-06 13:55:12 -04:00
types.each do |description, name|
Type.create(name: name, description: description)
end
rarities.each do |description, name|
Rarity.create(name: name, description: description)
end
awaken_types.each do |name|
AwakenType.create(name: name)
end
2015-10-08 15:18:21 -04:00
roles.each do |role|
Role.where({ name: role }, without_protection: true).first_or_create
end
2015-10-20 14:36:50 -04:00
stat_types.each do |name, description|
StatType.create(name: name, description: description)
end