-
Notifications
You must be signed in to change notification settings - Fork 507
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
dm-migrations property type issue #1020
Comments
Thanks @jeffreybasurto, it's a funny case the one you've spotted! It looks like dm-migrations doesn't support Text yet and whatever the DB takes underneath as a string for that field. It might be something we have to address on the generator. Anyway, I'll add @DAddYE and @postmodern to the conversation because this issue datamapper/dm-migrations#20 is related and they participated a while ago. |
It's a namespace issue. dm-migrations should use |
Ah I see, maybe we should just play it safe and specify the full class for now in migrations, it's not as pretty but maybe we can change it back later if dm-migrations supports this automatically in the future. Which version of dm did this happen with? |
Same thing happened to me. To answer @nesquena's question: dm 1.2.0. |
OK, valid issue plan to fix soon (post 0.11.0) unless anyone wants to object otherwise. |
👍 |
dm-migrations does extend DataMapper::Property::Lookup which adds a |
When trying to run a migration with a type of Text: (which was generated from padrino generator for model)
db/migrate/002_create_interfaces.rb:5:in `block (3 levels) in <top (required)>': uninitialized constant Text (NameError)
Actually, not sure if this is a problem with padrino, how it generates the migration file, or dm-migrations.
I "fixed" the issue by changing the type to "TEXT":
property :something, "TEXT"
The text was updated successfully, but these errors were encountered: