about summary refs log tree commit diff stats
path: root/data/maps/the_congruent/rooms/Flipped Magenta Room.txtpb
blob: a51b667daee26508c0a8032aa2571654c449fe32 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
generated by cgit-pink 1.4.1 (git 2.36.1) at 2025-10-09 17:26:04 +0000
 


class="k">end

    remove_column :pokeviewer_pokemon, :met_location
  end

  def down
    add_column :pokeviewer_pokemon, :met_location, :string

    Pokeviewer::Pokemon.all.each do |p|
      unless p.location_id.nil?
        p.met_location = p.location_id.to_s
        p.save!
      end
    end

    remove_column :pokeviewer_pokemon, :location_id
  end
end