diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210821215754_create_machines.rb | 10 | ||||
-rw-r--r-- | db/migrate/20210821230356_create_players.rb | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20210821215754_create_machines.rb b/db/migrate/20210821215754_create_machines.rb new file mode 100644 index 0000000..18cb89c --- /dev/null +++ b/db/migrate/20210821215754_create_machines.rb @@ -0,0 +1,10 @@ +class CreateMachines < ActiveRecord::Migration[6.0] + def change + create_table :machines do |t| + t.string :name + t.string :edition + + t.timestamps + end + end +end diff --git a/db/migrate/20210821230356_create_players.rb b/db/migrate/20210821230356_create_players.rb new file mode 100644 index 0000000..21c89d6 --- /dev/null +++ b/db/migrate/20210821230356_create_players.rb @@ -0,0 +1,11 @@ +class CreatePlayers < ActiveRecord::Migration[6.0] + def change + create_table :players do |t| + t.string :name + t.integer :strikes + t.boolean :paid + + t.timestamps + end + end +end |