summaryrefslogtreecommitdiff
path: root/db/migrate/20210407005347_create_ptu_pokemons.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-04-06 21:04:37 -0400
committerDavid Gay <david@davidgay.org>2021-04-06 21:04:37 -0400
commitb85c671ca482e9d36bd2ee94231f365e7e0d65a5 (patch)
tree19a1b3835df7e29dcec2c21aff494d0a60a751ce /db/migrate/20210407005347_create_ptu_pokemons.rb
parent84db8024dfe821efefadf77f91922f0944833a40 (diff)
Basic Pokemon setup for PTU
Diffstat (limited to 'db/migrate/20210407005347_create_ptu_pokemons.rb')
-rw-r--r--db/migrate/20210407005347_create_ptu_pokemons.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210407005347_create_ptu_pokemons.rb b/db/migrate/20210407005347_create_ptu_pokemons.rb
new file mode 100644
index 0000000..4bdbe29
--- /dev/null
+++ b/db/migrate/20210407005347_create_ptu_pokemons.rb
@@ -0,0 +1,17 @@
+class CreatePtuPokemons < ActiveRecord::Migration[6.1]
+ def change
+ create_table :ptu_pokemons do |t|
+ t.string :name
+ t.integer :base_hp
+ t.integer :base_atk
+ t.integer :base_def
+ t.integer :base_spatk
+ t.integer :base_spdef
+ t.integer :base_speed
+ t.decimal :male_chance
+ t.text :notes
+
+ t.timestamps
+ end
+ end
+end