diff options
author | David Gay <david@davidgay.org> | 2021-04-06 21:04:37 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-06 21:04:37 -0400 |
commit | b85c671ca482e9d36bd2ee94231f365e7e0d65a5 (patch) | |
tree | 19a1b3835df7e29dcec2c21aff494d0a60a751ce /db | |
parent | 84db8024dfe821efefadf77f91922f0944833a40 (diff) |
Basic Pokemon setup for PTU
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20210407005347_create_ptu_pokemons.rb | 17 | ||||
-rw-r--r-- | db/schema.rb | 16 |
2 files changed, 32 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index 354a229..927a80f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_04_07_000858) do +ActiveRecord::Schema.define(version: 2021_04_07_005347) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -27,6 +27,20 @@ ActiveRecord::Schema.define(version: 2021_04_07_000858) do t.datetime "updated_at", precision: 6, null: false end + create_table "ptu_pokemons", force: :cascade 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.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + end + create_table "ptu_types", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false |