feat: implement basic fairy tracker

This commit is contained in:
insects 2025-03-11 17:47:32 +01:00
parent 1e46ad269e
commit 8109bacb0d
27 changed files with 290 additions and 7 deletions

View file

@ -8,5 +8,7 @@ class CreateInstances < ActiveRecord::Migration[8.0]
t.timestamps
end
add_index :instances, :public_id
end
end

View file

@ -1,7 +1,7 @@
class CreateFairies < ActiveRecord::Migration[8.0]
def change
create_table :fairies do |t|
t.integer :location
t.string :location
t.boolean :is_despawned
t.boolean :is_suggested
t.references :instance, null: false, foreign_key: true

3
db/schema.rb generated
View file

@ -15,7 +15,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_10_183912) do
enable_extension "pg_catalog.plpgsql"
create_table "fairies", force: :cascade do |t|
t.integer "location"
t.string "location"
t.boolean "is_despawned"
t.boolean "is_suggested"
t.bigint "instance_id", null: false
@ -31,6 +31,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_10_183912) do
t.string "zone"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["public_id"], name: "index_instances_on_public_id"
end
create_table "pops", force: :cascade do |t|