Sha256: 5efaa23fcc87c2ebef881dbe75d8ad62d021d459f94b4dea886260debb8dc868

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 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      
    end

    add_index :song_occurences, [:uuid, :song_ref_uuid]
  end

  def down
    drop_table :song_occurences
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gdshowsdb-3.0.0 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-2.1.0 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-2.0.0 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-1.0.3 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-1.0.2 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-1.0.1 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb
gdshowsdb-1.0.0 lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb