From 2c8c227493509175fcdbcba3e6a85f8b954a169e Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 15 Jan 2022 12:10:26 -0500 Subject: init --- db/migrate/20220115164423_create_players.rb | 13 +++++++++++++ db/migrate/20220115164820_create_machines.rb | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 db/migrate/20220115164423_create_players.rb create mode 100644 db/migrate/20220115164820_create_machines.rb (limited to 'db/migrate') diff --git a/db/migrate/20220115164423_create_players.rb b/db/migrate/20220115164423_create_players.rb new file mode 100644 index 0000000..b12249a --- /dev/null +++ b/db/migrate/20220115164423_create_players.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class CreatePlayers < ActiveRecord::Migration[7.0] + def change + create_table :players do |t| + t.string :name + t.boolean :paid + t.integer :strikes + + t.timestamps + end + end +end diff --git a/db/migrate/20220115164820_create_machines.rb b/db/migrate/20220115164820_create_machines.rb new file mode 100644 index 0000000..6e889fc --- /dev/null +++ b/db/migrate/20220115164820_create_machines.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class CreateMachines < ActiveRecord::Migration[7.0] + def change + create_table :machines do |t| + t.string :name + t.string :edition + + t.timestamps + end + end +end -- cgit 1.4.1