alts
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
class AddMainPlayerIdToPlayers < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :players, :main_player_id, :integer
|
||||
add_index :players, :main_player_id
|
||||
end
|
||||
end
|
4
db/schema.rb
generated
4
db/schema.rb
generated
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_24_201602) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_26_011348) do
|
||||
create_table "api_keys", force: :cascade do |t|
|
||||
t.string "key"
|
||||
t.string "client"
|
||||
@ -39,5 +39,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_24_201602) do
|
||||
t.integer "purse"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "main_player_id"
|
||||
t.index ["main_player_id"], name: "index_players_on_main_player_id"
|
||||
end
|
||||
end
|
||||
|
@ -1,9 +0,0 @@
|
||||
# This file should ensure the existence of records required to run the application in every environment (production,
|
||||
# development, test). The code here should be idempotent so that it can be executed at any point in every environment.
|
||||
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
|
||||
# MovieGenre.find_or_create_by!(name: genre_name)
|
||||
# end
|
Reference in New Issue
Block a user