Files
turbovault-app/db/migrate/20260328183431_create_platforms.rb
2026-03-28 19:24:29 -04:00

13 lines
277 B
Ruby

class CreatePlatforms < ActiveRecord::Migration[8.1]
def change
create_table :platforms do |t|
t.string :name, null: false
t.string :abbreviation
t.string :manufacturer
t.timestamps
end
add_index :platforms, :name, unique: true
end
end