about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-29 18:36:57 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-29 18:36:57 -0400
commit6dff23b065bd933ff2f571d2264c86902173d40b (patch)
tree1b7853fce373897068d244cd2ae1487bf49cef6e /db
parentdc4a4d2f9a338e3d3560c514b0c97cb8bfea36b1 (diff)
downloadpokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.tar.gz
pokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.tar.bz2
pokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.zip
Added ribbons
Gift ribbons currently partially work: the correct ribbon image and name
is shown, but the ribbon description is not yet extracted from the game
and thus is just blank.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170929211529_add_ribbons_to_revision.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/db/migrate/20170929211529_add_ribbons_to_revision.rb b/db/migrate/20170929211529_add_ribbons_to_revision.rb new file mode 100644 index 0000000..1dc93c1 --- /dev/null +++ b/db/migrate/20170929211529_add_ribbons_to_revision.rb
@@ -0,0 +1,24 @@
1class AddRibbonsToRevision < ActiveRecord::Migration[5.1]
2 def change
3 change_table :pokeviewer_revisions do |t|
4 t.integer :cool_ribbons, null: false, default: 0
5 t.integer :beauty_ribbons, null: false, default: 0
6 t.integer :cute_ribbons, null: false, default: 0
7 t.integer :smart_ribbons, null: false, default: 0
8 t.integer :tough_ribbons, null: false, default: 0
9
10 t.boolean :champion_ribbon, default: false
11 t.boolean :winning_ribbon, default: false
12 t.boolean :victory_ribbon, default: false
13 t.boolean :artist_ribbon, default: false
14 t.boolean :effort_ribbon, default: false
15 t.boolean :marine_ribbon, default: false
16 t.boolean :land_ribbon, default: false
17 t.boolean :sky_ribbon, default: false
18 t.boolean :country_ribbon, default: false
19 t.boolean :national_ribbon, default: false
20 t.boolean :earth_ribbon, default: false
21 t.boolean :world_ribbon, default: false
22 end
23 end
24end