migrates to rails application