SHARE
TWEET

Untitled

a guest Aug 12th, 2016 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 02:57 deploy:migrating
  2.       01 /home/deploy/gh2/rvm1scripts/rvm-auto.sh 2.3.1@gh2 bundle exec rake db:migrate
  3.       01 == 20160809111756 CreateTags: migrating =======================================
  4.       01
  5.       01 -- create_table(:tags)
  6.       01
  7.       01 rake aborted!
  8.       01 StandardError: An error has occurred, this and all later migrations canceled:
  9.       01
  10.       01 PG::DuplicateTable: ERROR:  relation "tags" already exists
  11.       01 : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  12.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  13.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  14.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  15.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  16.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  17.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  18.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  19.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  20.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  21.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  22.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  23.       01 /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  24.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  25.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  26.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  27.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  28.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  29.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  30.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  31.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  32.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  33.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  34.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  35.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  36.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  37.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  38.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  39.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  40.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  41.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  42.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  43.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  44.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  45.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  46.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  47.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  48.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  49.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  50.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  51.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  52.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  53.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  54.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  55.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  56.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  57.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  58.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  59.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  60.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  61.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  62.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  63.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  64.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  65.       01 ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR:  relation "tags" already exists
  66.       01 : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  67.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  68.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  69.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  70.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  71.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  72.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  73.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  74.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  75.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  76.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  77.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  78.       01 /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  79.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  80.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  81.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  82.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  83.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  84.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  85.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  86.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  87.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  88.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  89.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  90.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  91.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  92.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  93.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  94.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  95.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  96.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  97.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  98.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  99.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  100.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  101.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  102.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  103.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  104.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  105.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  106.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  107.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  108.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  109.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  110.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  111.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  112.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  113.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  114.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  115.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  116.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  117.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  118.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  119.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  120.       01 PG::DuplicateTable: ERROR:  relation "tags" already exists
  121.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  122.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  123.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  124.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  125.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  126.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  127.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  128.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  129.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  130.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  131.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  132.       01 /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  133.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  134.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  135.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  136.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  137.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  138.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  139.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  140.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  141.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  142.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  143.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  144.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  145.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  146.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  147.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  148.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  149.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  150.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  151.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  152.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  153.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  154.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  155.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  156.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  157.       01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  158.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  159.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  160.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  161.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  162.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  163.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  164.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  165.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  166.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  167.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  168.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  169.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  170.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  171.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  172.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  173.       01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  174.       01 Tasks: TOP => db:migrate
  175.       01 (See full trace by running task with --trace)
  176. (Backtrace restricted to imported tasks)
  177. cap aborted!
  178. SSHKit::Runner::ExecuteError: Exception while executing as deploy@10.0.1.54: Exception while executing as deploy@10.0.1.54: rake exit status: 1
  179. rake stdout: == 20160809111756 CreateTags: migrating =======================================
  180. -- create_table(:tags)
  181. rake stderr: rake aborted!
  182. StandardError: An error has occurred, this and all later migrations canceled:
  183.  
  184. PG::DuplicateTable: ERROR:  relation "tags" already exists
  185. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  186. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  187. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  188. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  189. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  190. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  191. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  192. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  193. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  194. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  195. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  196. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  197. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  198. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  199. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  200. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  201. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  202. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  203. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  204. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  205. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  206. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  207. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  208. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  209. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  210. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  211. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  212. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  213. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  214. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  215. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  216. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  217. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  218. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  219. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  220. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  221. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  222. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  223. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  224. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  225. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  226. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  227. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  228. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  229. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  230. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  231. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  232. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  233. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  234. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  235. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  236. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  237. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  238. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  239. ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR:  relation "tags" already exists
  240. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  241. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  242. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  243. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  244. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  245. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  246. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  247. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  248. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  249. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  250. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  251. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  252. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  253. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  254. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  255. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  256. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  257. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  258. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  259. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  260. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  261. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  262. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  263. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  264. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  265. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  266. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  267. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  268. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  269. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  270. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  271. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  272. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  273. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  274. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  275. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  276. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  277. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  278. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  279. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  280. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  281. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  282. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  283. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  284. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  285. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  286. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  287. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  288. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  289. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  290. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  291. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  292. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  293. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  294. PG::DuplicateTable: ERROR:  relation "tags" already exists
  295. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  296. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  297. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  298. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  299. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  300. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  301. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  302. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  303. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  304. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  305. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  306. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  307. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  308. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  309. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  310. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  311. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  312. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  313. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  314. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  315. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  316. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  317. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  318. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  319. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  320. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  321. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  322. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  323. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  324. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  325. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  326. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  327. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  328. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  329. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  330. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  331. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  332. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  333. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  334. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  335. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  336. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  337. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  338. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  339. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  340. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  341. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  342. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  343. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  344. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  345. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  346. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  347. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  348. Tasks: TOP => db:migrate
  349. (See full trace by running task with --trace)
  350.  
  351. SSHKit::Runner::ExecuteError: Exception while executing as deploy@10.0.1.54: rake exit status: 1
  352. rake stdout: == 20160809111756 CreateTags: migrating =======================================
  353. -- create_table(:tags)
  354. rake stderr: rake aborted!
  355. StandardError: An error has occurred, this and all later migrations canceled:
  356.  
  357. PG::DuplicateTable: ERROR:  relation "tags" already exists
  358. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  359. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  360. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  361. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  362. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  363. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  364. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  365. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  366. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  367. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  368. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  369. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  370. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  371. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  372. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  373. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  374. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  375. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  376. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  377. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  378. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  379. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  380. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  381. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  382. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  383. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  384. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  385. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  386. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  387. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  388. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  389. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  390. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  391. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  392. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  393. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  394. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  395. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  396. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  397. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  398. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  399. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  400. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  401. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  402. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  403. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  404. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  405. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  406. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  407. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  408. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  409. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  410. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  411. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  412. ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR:  relation "tags" already exists
  413. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  414. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  415. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  416. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  417. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  418. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  419. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  420. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  421. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  422. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  423. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  424. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  425. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  426. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  427. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  428. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  429. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  430. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  431. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  432. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  433. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  434. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  435. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  436. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  437. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  438. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  439. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  440. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  441. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  442. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  443. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  444. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  445. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  446. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  447. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  448. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  449. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  450. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  451. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  452. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  453. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  454. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  455. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  456. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  457. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  458. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  459. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  460. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  461. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  462. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  463. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  464. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  465. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  466. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  467. PG::DuplicateTable: ERROR:  relation "tags" already exists
  468. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  469. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  470. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  471. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  472. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  473. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  474. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  475. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  476. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  477. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  478. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  479. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  480. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  481. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  482. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  483. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  484. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  485. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  486. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  487. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  488. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  489. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  490. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  491. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  492. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  493. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  494. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  495. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  496. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  497. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  498. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  499. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  500. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  501. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  502. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  503. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  504. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  505. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  506. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  507. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  508. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  509. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  510. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  511. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  512. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  513. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  514. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  515. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  516. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  517. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  518. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  519. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  520. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  521. Tasks: TOP => db:migrate
  522. (See full trace by running task with --trace)
  523.  
  524. SSHKit::Command::Failed: rake exit status: 1
  525. rake stdout: == 20160809111756 CreateTags: migrating =======================================
  526. -- create_table(:tags)
  527. rake stderr: rake aborted!
  528. StandardError: An error has occurred, this and all later migrations canceled:
  529.  
  530. PG::DuplicateTable: ERROR:  relation "tags" already exists
  531. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  532. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  533. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  534. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  535. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  536. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  537. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  538. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  539. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  540. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  541. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  542. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  543. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  544. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  545. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  546. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  547. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  548. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  549. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  550. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  551. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  552. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  553. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  554. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  555. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  556. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  557. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  558. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  559. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  560. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  561. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  562. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  563. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  564. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  565. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  566. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  567. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  568. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  569. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  570. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  571. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  572. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  573. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  574. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  575. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  576. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  577. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  578. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  579. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  580. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  581. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  582. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  583. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  584. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  585. ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR:  relation "tags" already exists
  586. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  587. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  588. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  589. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  590. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  591. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  592. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  593. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  594. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  595. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  596. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  597. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  598. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  599. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  600. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  601. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  602. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  603. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  604. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  605. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  606. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  607. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  608. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  609. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  610. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  611. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  612. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  613. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  614. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  615. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  616. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  617. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  618. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  619. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  620. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  621. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  622. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  623. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  624. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  625. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  626. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  627. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  628. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  629. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  630. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  631. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  632. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  633. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  634. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  635. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  636. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  637. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  638. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  639. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  640. PG::DuplicateTable: ERROR:  relation "tags" already exists
  641. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  642. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  643. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  644. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  645. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  646. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  647. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  648. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  649. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  650. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  651. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  652. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  653. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  654. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  655. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  656. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  657. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  658. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  659. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  660. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  661. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  662. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  663. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  664. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  665. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  666. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  667. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  668. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  669. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  670. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  671. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  672. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  673. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  674. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  675. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  676. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  677. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  678. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  679. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  680. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  681. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  682. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  683. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  684. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  685. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  686. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  687. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  688. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  689. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  690. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  691. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  692. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  693. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  694. Tasks: TOP => db:migrate
  695. (See full trace by running task with --trace)
  696.  
  697. Tasks: TOP => deploy:migrate
  698. (See full trace by running task with --trace)
  699. The deploy has failed with an error: Exception while executing as deploy@10.0.1.54: Exception while executing as deploy@10.0.1.54: rake exit status: 1
  700. rake stdout: == 20160809111756 CreateTags: migrating =======================================
  701. -- create_table(:tags)
  702. rake stderr: rake aborted!
  703. StandardError: An error has occurred, this and all later migrations canceled:
  704.  
  705. PG::DuplicateTable: ERROR:  relation "tags" already exists
  706. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  707. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  708. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  709. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  710. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  711. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  712. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  713. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  714. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  715. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  716. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  717. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  718. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  719. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  720. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  721. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  722. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  723. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  724. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  725. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  726. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  727. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  728. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  729. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  730. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  731. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  732. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  733. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  734. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  735. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  736. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  737. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  738. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  739. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  740. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  741. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  742. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  743. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  744. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  745. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  746. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  747. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  748. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  749. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  750. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  751. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  752. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  753. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  754. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  755. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  756. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  757. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  758. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  759. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  760. ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR:  relation "tags" already exists
  761. : CREATE TABLE "tags" ("id" serial primary key, "tag" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
  762. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  763. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  764. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  765. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  766. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  767. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  768. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  769. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  770. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  771. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  772. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  773. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  774. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  775. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  776. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  777. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  778. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  779. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  780. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  781. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  782. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  783. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  784. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  785. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  786. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  787. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  788. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  789. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  790. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  791. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  792. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  793. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  794. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  795. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  796. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  797. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  798. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  799. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  800. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  801. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  802. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  803. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  804. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  805. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  806. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  807. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  808. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  809. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  810. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  811. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  812. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  813. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  814. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  815. PG::DuplicateTable: ERROR:  relation "tags" already exists
  816. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `async_exec'
  817. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in `block in execute'
  818. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log'
  819. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  820. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log'
  821. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:97:in `execute'
  822. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:283:in `create_table'
  823. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:845:in `block in method_missing'
  824. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `block in say_with_time'
  825. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
  826. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
  827. /home/deploy/gh2/releases/20160812115144/db/migrate/20160809111756_create_tags.rb:3:in `change'
  828. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
  829. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:772:in `block (2 levels) in migrate'
  830. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
  831. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:398:in `with_connection'
  832. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
  833. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
  834. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1211:in `block in execute_migration_in_transaction'
  835. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `block in ddl_transaction'
  836. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
  837. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
  838. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
  839. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
  840. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
  841. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1210:in `execute_migration_in_transaction'
  842. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1183:in `block in migrate_without_lock'
  843. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
  844. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
  845. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
  846. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
  847. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
  848. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
  849. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
  850. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
  851. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  852. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  853. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  854. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  855. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  856. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  857. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  858. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  859. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  860. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  861. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  862. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  863. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  864. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  865. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  866. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  867. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  868. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  869. Tasks: TOP => db:migrate
  870. (See full trace by running task with --trace)
  871.  
  872. ** DEPLOY FAILED
  873. ** Refer to log/capistrano.log for details. Here are the last 20 lines:
  874.  
  875. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
  876. /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  877. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
  878. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
  879. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
  880. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
  881. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  882. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  883. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  884. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  885. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  886. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  887. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  888. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  889. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
  890. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
  891. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
  892. /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
  893.  DEBUG [80685bdd]   Tasks: TOP => db:migrate
  894.  DEBUG [80685bdd]   (See full trace by running task with --trace)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top