Sha256: a75220636a9702aec6812134ebc67dde729aecc17dfacc56b126a4da6630a36d

Contents?: true

Size: 224 Bytes

Versions: 3

Compression:

Stored size: 224 Bytes

Contents

class CreateJoinTableAlbumUser < ActiveRecord::Migration[7.1]
  def change
    create_join_table :albums, :users do |t|
      t.index [:album_id, :user_id], unique: true
      t.index [:user_id, :album_id]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
recommender-2.0.1 spec/test_app/db/migrate/20240621102359_create_join_table_album_user.rb
recommender-2.0.0 spec/test_app/db/migrate/20240621102359_create_join_table_album_user.rb
recommender-0.1.0 spec/test_app/db/migrate/20240621102359_create_join_table_album_user.rb