Skip to content
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

use twitter_id as id in users table #16

Open
kykim opened this issue Jun 18, 2009 · 0 comments
Open

use twitter_id as id in users table #16

kykim opened this issue Jun 18, 2009 · 0 comments

Comments

@kykim
Copy link

kykim commented Jun 18, 2009

is it possible to change the migration to look like this:
create_table :users. :id => false do |t|
t.integer :id, :limit => 8 # force column to bigint in mysql
...
end
add_index :users, :id, :unique => true

if this is possible, then we can have the id in the users table match the id we get from twitter.
we'd have to change the GenericUser model a bit to handle this, but i think it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant