about summary refs log tree commit diff stats
path: root/db/migrate/20171015171549_add_ribbons_to_revision.pokeviewer.rb
blob: 01f4c2d4263b1f6c04f5cc1bf593091123a4aa2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This migration comes from pokeviewer (originally 20170929211529)
class AddRibbonsToRevision < ActiveRecord::Migration[5.1]
  def change
    change_table :pokeviewer_revisions do |t|
      t.integer :cool_ribbons, null: false, default: 0
      t.integer :beauty_ribbons, null: false, default: 0
      t.integer :cute_ribbons, null: false, default: 0
      t.integer :smart_ribbons, null: false, default: 0
      t.integer :tough_ribbons, null: false, default: 0
      
      t.boolean :champion_ribbon, default: false
      t.boolean :winning_ribbon, default: false
      t.boolean :victory_ribbon, default: false
      t.boolean :artist_ribbon, default: false
      t.boolean :effort_ribbon, default: false
      t.boolean :marine_ribbon, default: false
      t.boolean :land_ribbon, default: false
      t.boolean :sky_ribbon, default: false
      t.boolean :country_ribbon, default: false
      t.boolean :national_ribbon, default: false
      t.boolean :earth_ribbon, default: false
      t.boolean :world_ribbon, default: false
    end
  end
end