feat: implement basic fairy tracker
This commit is contained in:
parent
1e46ad269e
commit
8109bacb0d
27 changed files with 290 additions and 7 deletions
|
@ -8,5 +8,7 @@ class CreateInstances < ActiveRecord::Migration[8.0]
|
|||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :instances, :public_id
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
3
db/schema.rb
generated
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue