Comments (2)
I ran into this exact same problem not moments ago. Did a little digging and here's what I found.
At first glance it appears that the DeviseCreateUserConstraintsAndIndexes
migration is not being created correctly. I took a gamble and changed the migration created by devise-neo4j from this:
class DeviseCreateUserConstraintsAndIndexes < Neo4j::Migrations::Base
def change
add_index :User, :email, force: true
add_index :User, :remember_token, force: true
add_index :User, :reset_password_token, force: true
# add_index :User, :confirmation_token, force: true
# add_index :User, :unlock_token, force: true
# add_index :User, :authentication_token, force: true
end
end
to this:
class DeviseCreateUserConstraintsAndIndexes < Neo4j::Migrations::Base
def up
add_index :User, :email, force: true
add_index :User, :remember_token, force: true
add_index :User, :reset_password_token, force: true
# add_index :User, :confirmation_token, force: true
# add_index :User, :unlock_token, force: true
# add_index :User, :authentication_token, force: true
end
def down
# drop_index :User, :authentication_token, force: true
# drop_index :User, :unlock_token, force: true
# drop_index :User, :confirmation_token, force: true
drop_index :User, :reset_password_token, force: true
drop_index :User, :remember_token, force: true
drop_index :User, :email, force: true
end
end
and the migration completed successfully once I reset and re-ran it. Unfortunately since I'm relatively new to Rails (or Ruby for that matter), I can't tell you why this worked. My best guess (read: pure speculation) is that the NotImplementedError
is indicative of Rails not expecting to see def change
in the migration.
EDITED TO CLARIFY: I ran into the same problem with both migrations getting the same timestamp as well -- everything I outlined above was what I did to get the second migration to work after changing the timestamp on the second migration as outlined in @leehericks' post above. So, best as I can tell, there's two problems that need to be solved for... the overlapping timestamps and the content of the second migration file.
from devise-activegraph.
Hey @TheOneTrueLX thanks for this!
I think with your issue the problem is that the change
method isn't supported by the neo4j
gem's migrations. Probably it could be supported at some point.
I just created an issue in the neo4j
gem repo to track this idea
from devise-activegraph.
Related Issues (20)
- Email translation missing: en.neo4j.errors.models.user.attributes.email.taken HOT 8
- DateTime nil not supported by neo4j HOT 7
- "Could not find a valid mapping" Error on Update HOT 17
- Email addresses are lost after a few logins HOT 15
- `remember_token` property is missing in model generator HOT 1
- Does devise-neo4j support token authentication HOT 2
- confirmation sent with sign in and sign out HOT 4
- Having an issue with custom devise controllers HOT 9
- `:unconfirmed_email` missing from model generator HOT 1
- adding railtie HOT 7
- Upgrading to neo4j.rb 8.0 and neo4j-core 7.0.0 breaks Devise code HOT 3
- Unable to set null to false on model HOT 7
- Gemfile.lock tied to rails 4.2.3 in Windows HOT 4
- Can't get notification email when user change password HOT 1
- Frozen App during user registration HOT 2
- rails g neo4j:active_graph User error HOT 1
- rake neo4j:migrate error HOT 1
- Can't install HOT 2
- Devise 2.1.2 support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devise-activegraph.