Sha256: 2591ab5ad988170d5466073fceb010b6de03880df3699bc3db79610e585f4144
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 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 [:uuid, :song_ref_uuid, :position], unique: true end end def down drop_table :song_occurences end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gdshowsdb-4.0.0 | lib/gdshowsdb/db/migrations/006_create_song_occurences_table.rb |