about summary refs log tree commit diff
path: root/db/migrate/20220115164423_create_players.rb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-01-15 12:10:26 -0500
committerBen Harris <ben@tilde.team>2022-01-15 12:10:26 -0500
commit2c8c227493509175fcdbcba3e6a85f8b954a169e (patch)
tree56c95cb471004fef1bfa4c99e93fdec1716e3840 /db/migrate/20220115164423_create_players.rb
init
Diffstat (limited to 'db/migrate/20220115164423_create_players.rb')
-rw-r--r--db/migrate/20220115164423_create_players.rb13
1 files changed, 13 insertions, 0 deletions
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