mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-16 22:12:53 +00:00
15 lines
506 B
Ruby
15 lines
506 B
Ruby
class CreateIgdbPlatformMappings < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :igdb_platform_mappings do |t|
|
|
t.references :platform, null: false, foreign_key: true, index: true
|
|
t.integer :igdb_platform_id, null: false
|
|
t.string :igdb_platform_name
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :igdb_platform_mappings, :igdb_platform_id
|
|
add_index :igdb_platform_mappings, [ :platform_id, :igdb_platform_id ], unique: true, name: 'index_platform_mappings_unique'
|
|
end
|
|
end
|