From 4fd7aebd5e81236a5ec2956486d3228a40ac4978 Mon Sep 17 00:00:00 2001 From: Daigo 3 Dango Date: Mon, 16 Oct 2017 08:29:49 -1000 Subject: [PATCH] Fix typo in a db:rollback script (#5422) Reported at https://don.inux39.me/@inux39/1406082 https://don.inux39.me/@inux39/1406134 --- db/migrate/20170920024819_status_ids_to_timestamp_ids.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20170920024819_status_ids_to_timestamp_ids.rb b/db/migrate/20170920024819_status_ids_to_timestamp_ids.rb index 5d15817bd..c10aa2c4f 100644 --- a/db/migrate/20170920024819_status_ids_to_timestamp_ids.rb +++ b/db/migrate/20170920024819_status_ids_to_timestamp_ids.rb @@ -26,7 +26,7 @@ class StatusIdsToTimestampIds < ActiveRecord::Migration[5.1] SELECT setval('statuses_id_seq', (SELECT MAX(id) FROM statuses)); ALTER TABLE statuses ALTER COLUMN id - SET DEFAULT nextval('statuses_id_seq');" + SET DEFAULT nextval('statuses_id_seq'); SQL end end