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

Not to create an account if already exist #11366

Merged
merged 1 commit into from
Jul 21, 2019

Conversation

ysksn
Copy link
Contributor

@ysksn ysksn commented Jul 20, 2019

ActiveRecord::RecordNotUnique raised when running test because of the same Account created in db/seeds.rb.

ActiveRecord::RecordNotUnique:
  PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "accounts_pkey"
  DETAIL:  Key (id)=(-99) already exists.
  : INSERT INTO "accounts" ("id", "username", "private_key", "public_key", "created_at", "updated_at", "locked", "actor_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"

Add instance actor (second take) #11321

@Gargron Gargron merged commit 2859790 into mastodon:master Jul 21, 2019
@ysksn ysksn deleted the create_account_if_not_exist branch July 22, 2019 00:23
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
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

Successfully merging this pull request may close these issues.

2 participants