Open andycarlson13 opened 6 years ago
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_hashtags_on_tag" DETAIL: Key (tag)=(#hi) already exists. : INSERT INTO "hashtags" ("tag", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
The code tries to create a hashtag every time you use one
I already fixed this
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_hashtags_on_tag" DETAIL: Key (tag)=(#hi) already exists. : INSERT INTO "hashtags" ("tag", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"