add api key
This commit is contained in:
@ -9,6 +9,7 @@ class CreateGames < ActiveRecord::Migration[8.0]
|
||||
t.integer :high_roll
|
||||
t.integer :low_roll
|
||||
t.integer :payout
|
||||
t.string :client
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
10
db/migrate/20250124201602_create_api_keys.rb
Normal file
10
db/migrate/20250124201602_create_api_keys.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class CreateApiKeys < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :api_keys do |t|
|
||||
t.string :key
|
||||
t.string :client
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
10
db/schema.rb
generated
10
db/schema.rb
generated
@ -10,7 +10,14 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_23_200608) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_24_201602) do
|
||||
create_table "api_keys", force: :cascade do |t|
|
||||
t.string "key"
|
||||
t.string "client"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "games", force: :cascade do |t|
|
||||
t.datetime "timestamp"
|
||||
t.integer "gametype"
|
||||
@ -20,6 +27,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_23_200608) do
|
||||
t.integer "high_roll"
|
||||
t.integer "low_roll"
|
||||
t.integer "payout"
|
||||
t.string "client"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
Reference in New Issue
Block a user