Sha256: 0dba9febd515770f9696cde4d8838737578933d2b8accb79ef7a3933a2c8501d

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

class CreateSongRefTable < ActiveRecord::Migration[5.0]
	def up
		create_table :song_refs, :id => false do |t|
			t.string :uuid, primary: true, null: false
			t.string :name
      t.string :slug  
			t.index :uuid, unique: true  
			t.index :name, unique: true  
			t.index :slug, unique: true  
		end    
	end

	def down
		drop_table :song_refs
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gdshowsdb-4.0.2 lib/gdshowsdb/db/migrations/001_create_song_ref_table.rb
gdshowsdb-4.0.1 lib/gdshowsdb/db/migrations/001_create_song_ref_table.rb
gdshowsdb-4.0.0 lib/gdshowsdb/db/migrations/001_create_song_ref_table.rb