Sha256: 47df5d6779314bebb58a19b743c2139e59c2dea2a30aa8811316b9a6b25bb887

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

class CreateSongOccurencesTable < ActiveRecord::Migration[5.0]
  
  def up
    create_table :song_occurences, :id => false do |t|
      t.string :uuid, :primary => true, :null => false
      t.string :show_uuid
      t.string :song_ref_uuid
      t.integer :position
      t.index :uuid, unique: true
      t.index :song_ref_uuid
      t.index [:show_uuid, :song_ref_uuid, :position], unique: true, name: 'unique_song_occurences_for_show'      
    end
  end

  def down
    drop_table :song_occurences
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-4.0.2 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-4.0.1 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb