init
This commit is contained in:
12
db/migrate/20250123195031_create_players.rb
Normal file
12
db/migrate/20250123195031_create_players.rb
Normal file
@ -0,0 +1,12 @@
|
||||
class CreatePlayers < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :players do |t|
|
||||
t.string :name
|
||||
t.integer :wins
|
||||
t.integer :losses
|
||||
t.integer :purse
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
16
db/migrate/20250123200608_create_games.rb
Normal file
16
db/migrate/20250123200608_create_games.rb
Normal file
@ -0,0 +1,16 @@
|
||||
class CreateGames < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :games do |t|
|
||||
t.timestamp :timestamp
|
||||
t.integer :gametype
|
||||
t.integer :wager
|
||||
t.string :winner
|
||||
t.string :loser
|
||||
t.integer :high_roll
|
||||
t.integer :low_roll
|
||||
t.integer :payout
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user