mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-16 22:12:53 +00:00
13 lines
277 B
Ruby
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
|