Sha256: 178d42eac41c759287f6b61c520b3fd12e49229dc132b372f2762f1f6d044ffd

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

require 'yaml'
require 'gdshowsdb'

class ImportSongRefs < ActiveRecord::Migration
	def up		
		Gdshowsdb::SongRefYAMLParser.from_yaml.parse.each do |song_ref_hash|
			SongRef.create_from(song_ref_hash)
		end		
	end

	def down
		SongRef.delete_all
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-0.9.1 lib/gdshowsdb/db/migrations/002_import_song_refs.rb
gdshowsdb-0.9.0 lib/gdshowsdb/db/migrations/002_import_song_refs.rb