Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Migrating Generated Models #55

Open
rdrop opened this issue Sep 30, 2015 · 1 comment
Open

Error When Migrating Generated Models #55

rdrop opened this issue Sep 30, 2015 · 1 comment

Comments

@rdrop
Copy link

rdrop commented Sep 30, 2015

Any migration with the word 'API' has all of the letter capitalized in the generator templates.

i.e.
migration xxxxxxx_add_api_ids.rb is
class AddAPIIds < ActiveRecord::Migration

It would either have to be:
migration xxxxxxx_add_a_p_i_ids.rb is
class AddAPIIds < ActiveRecord::Migration

OR
migration xxxxxxx_add_api_ids.rb is
class AddApiIds < ActiveRecord::Migration

FOLDER:
/lib/generators/surveyor/templates/db/migrate/

FILES:
add_api_id_to_question_groups.rb
add_api_ids_to_response_sets_and_responses.rb
add_api_ids.rb
api_ids_must_be_unique.rb
update_blank_api_ids_on_question_group.rb

@tparsnick
Copy link

Strange. What error are you getting? I updated the generator templates to use capital 'API' recently in the class name because I was getting an error when running db:migrate in a project with Rails 4.2.3. See #52 for the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants