Fixed problem with rails primary key.

We need to remove the uniqueness scope to use 
api_id as primary key.
Gemfile.lock