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/20260328183447_create_game_genres.rb
Normal file
12
db/migrate/20260328183447_create_game_genres.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateGameGenres < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :game_genres do |t|
|
||||
t.references :game, null: false, foreign_key: true, index: true
|
||||
t.references :genre, null: false, foreign_key: true, index: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :game_genres, [ :game_id, :genre_id ], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user