Sha256: c948cbb174261c1c0c4700fdb9a8263d5c7718b18aee030b3d61cb0c89cfef5c

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

class CreateSongTable < ActiveRecord::Migration
	
	def up
		create_table :songs, :id => false do |t|
			t.string :uuid, :primary => true, :null => false
			t.string :show_set_uuid
			t.string :song_ref_uuid
			t.integer :position
			t.boolean :segued			
		end

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

	def down
		drop_table :songs
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-0.9.1 lib/gdshowsdb/db/migrations/005_create_song_table.rb
gdshowsdb-0.9.0 lib/gdshowsdb/db/migrations/005_create_song_table.rb