-
Notifications
You must be signed in to change notification settings - Fork 123
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
schema.rb not correct for SQLite #27
Comments
For the interim, I seem to have solved this by making the migrations thus:
And then adding this to the model:
include ActiveUUID::UUID |
For the moment I solved this by NOT specifying
However this solution seems...hacky. |
Also, apolgies for the constant closing/reopening -- keep tabbing to the wrong button! |
It's all because of the rails migrator and schema dumpers. Internally, migrator users There is a kind of solution, but it is not finished yet - #22 |
@agios I gave this a try and it isn't working for me. undefined method |
@agios I copied the default_string method from rails 3.2.13 def default_string(value) Now it seems to work okay for me. I've added it to my pull request which is another fix for Rails 4. Pull Request: #33 |
Given a migration such as:
You get in an entry in schema.rb such as:
Notice it looks EXACTLY like a normal table with an ID. I believe, because of this, your sqlite test database does not use UUIDs:
gets:
If I edit the schema.rb file to look like:
The same test now outputs:
However, clearly, editing the schema.rb file by hand after every migration is not an option.
Is this a bug? Something I am missing?
The text was updated successfully, but these errors were encountered: