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:
13
db/migrate/20260328183456_create_collection_games.rb
Normal file
13
db/migrate/20260328183456_create_collection_games.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateCollectionGames < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :collection_games do |t|
|
||||
t.references :collection, null: false, foreign_key: true, index: true
|
||||
t.references :game, null: false, foreign_key: true, index: true
|
||||
t.integer :position
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :collection_games, [ :collection_id, :game_id ], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user