-
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
sqlite support #21
Comments
Is sqlite you have the latest version? Is it sqlite3? |
I've got jruby 1.6.7.2, rails 3.1.4, sqlite3 1.3.6, activerecord-jdbcsqlite3-adapter 1.2.2.1. |
Сlear. Activeuuid is adapter-dependent feature. As you can see here https://github.com/jashmenn/activeuuid/blob/master/lib/activeuuid/patches.rb#L117 - only native AR sqlite3 adapter is supported, so you can implement similar patch for your adapter or just try to apply existing sqlite pathces to your adapter - thre is a chance it is compatible. |
I'm having the same problem using sqlite3 gem. Do you know what may be happening? |
Can you show related migrations? |
Sure. Rails 3.2.13 and sqlite3 (1.3.7) migration class CreateDesigners < ActiveRecord::Migration end |
Please try |
Oops. It did not work. Now the generated schema does not have ids create_table "designers", :force => true do |t|
t.string "name", :null => false
t.string "data_source"
end |
Yes, it is not nessesary to set primary_key on model level. |
For development, sqlite doesn't seem support in the latest version of this gem.
My schema shows this:
Could not dump table "foo" because of following StandardError
Unknown type 'binary(16)' for column 'bar'
Instead of type binary(16) could we instead use:
t.binary, :limit => 16
for sqlite?
Is there some reason this wouldn't work?
The text was updated successfully, but these errors were encountered: