mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 01:42:53 +00:00
Moving to github
This commit is contained in:
12
db/migrate/20260328183431_create_platforms.rb
Normal file
12
db/migrate/20260328183431_create_platforms.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user