You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
# app/models/application_record.rb# the presence of this file prevents rails migrations from recreating application_record.rb see https://github.com/rails/rails/issues/29407require'models/000_application_record.rb'
Then your real application_record should be named 000_application_record.rb, and placed in hyperloop/models directory.
# app/hyperloop/models/000_application_record.rbclassApplicationRecord < ActiveRecord::Base# whatever you wantend
This accomplishes 2 things
First - the app/models/application_record.rb prevents rails generators from recreating it. If you just move the application record to app/hyperloop/models, then every time you use the rails generator to create a model, it will think application record does not exist, and add another one!
The text was updated successfully, but these errors were encountered:
catmando
changed the title
document this work around
document application_record work around
Sep 19, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This accomplishes 2 things
First - the app/models/application_record.rb prevents rails generators from recreating it. If you just move the application record to app/hyperloop/models, then every time you use the rails generator to create a model, it will think application record does not exist, and add another one!
The text was updated successfully, but these errors were encountered: