ok, so remove the validation and index and sort out the rest over time?

On 18/07/2013, at 2:50 PM, Piotr Sarnacki <notifications@github.com> wrote:

> In db/schema.rb:
> 
> >    add_index "repositories", ["last_build_started_at"], :name => "index_repositories_on_last_build_started_at"
> > -  add_index "repositories", ["owner_name", "name"], :name => "index_repositories_on_owner_name_and_name"
> > +  add_index "repositories", ["owner_name", "name"], :name => "index_repositories_on_owner_name_and_name", :unique => true
> I think we should remove the index and the validation. Then maybe we could add a code which updates old repo in case new one is created with the same owner and name. Example use case:
> 
> User1 changes username and does not log into Travis nor pushes any commits, thus his username in our DB stays unchanged until we do an automatic sync
> User2 registers with the old username and logs into Travis and creates the exact same repository
> We should let the repository to be created
> We should ideally rename the old one
> I'm pretty sure that we can leave it like that for now, because it is an edge case and even without doing 4 it will be fine.
> 
> —
> Reply to this email directly or view it on GitHub.
>