Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 00:53 deploy:migrating
- 01 /home/deploy/gh2/rvm1scripts/rvm-auto.sh 2.3.1@gh2 bundle exec rake db:migrate
- 01 == 20160809111854 CreateEmailers: migrating ===================================
- 01
- 01 -- create_table(:emailers)
- 01
- 01 rake aborted!
- 01 StandardError: An error has occurred, this and all later migrations canceled:
- 01
- 01 PG::DuplicateTable: ERROR: relation "emailers" already exists
- 01 : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestam…
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- 01 /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- 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'
- 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)>'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- 01 ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "emailers" already exists
- 01 : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestam…
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- 01 /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- 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'
- 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)>'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- 01 PG::DuplicateTable: ERROR: relation "emailers" already exists
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- 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'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- 01 /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- 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'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- 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'
- 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'
- 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'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- 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'
- 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)>'
- 01 /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- 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'
- 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'
- 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'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- 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'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- 01 /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- 01 Tasks: TOP => db:migrate
- 01 (See full trace by running task with --trace)
- (Backtrace restricted to imported tasks)
- cap aborted!
- 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
- rake stdout: == 20160809111854 CreateEmailers: migrating ===================================
- -- create_table(:emailers)
- rake stderr: rake aborted!
- StandardError: An error has occurred, this and all later migrations canceled:
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
- SSHKit::Runner::ExecuteError: Exception while executing as deploy@10.0.1.54: rake exit status: 1
- rake stdout: == 20160809111854 CreateEmailers: migrating ===================================
- -- create_table(:emailers)
- rake stderr: rake aborted!
- StandardError: An error has occurred, this and all later migrations canceled:
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
- SSHKit::Command::Failed: rake exit status: 1
- rake stdout: == 20160809111854 CreateEmailers: migrating ===================================
- -- create_table(:emailers)
- rake stderr: rake aborted!
- StandardError: An error has occurred, this and all later migrations canceled:
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
- Tasks: TOP => deploy:migrate
- (See full trace by running task with --trace)
- 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
- rake stdout: == 20160809111854 CreateEmailers: migrating ===================================
- -- create_table(:emailers)
- rake stderr: rake aborted!
- StandardError: An error has occurred, this and all later migrations canceled:
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- ActiveRecord::StatementInvalid: PG::DuplicateTable: ERROR: relation "emailers" already exists
- : CREATE TABLE "emailers" ("id" serial primary key, "subject" character varying, "body" text, "name" character varying, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- PG::DuplicateTable: ERROR: relation "emailers" already exists
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:814:in `say_with_time'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:834:in `method_missing'
- /home/deploy/gh2/releases/20160812114632/db/migrate/20160809111854_create_emailers.rb:3:in `change'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:788:in `exec_migration'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:771:in `block in migrate'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:770:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:950:in `migrate'
- /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'
- /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'
- /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'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/transactions.rb:211:in `transaction'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1279:in `ddl_transaction'
- /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'
- /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'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `each'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1182:in `migrate_without_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `block in migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1298:in `with_advisory_lock'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1131:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:1005:in `up'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/migration.rb:983:in `migrate'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.0/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- Tasks: TOP => db:migrate
- (See full trace by running task with --trace)
- ** DEPLOY FAILED
- ** Refer to log/capistrano.log for details. Here are the last 20 lines:
- /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)>'
- /home/deploy/gh2/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
- /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'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
- /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'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `load'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/bundle:23:in `<main>'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `eval'
- /home/deploy/.rvm/gems/ruby-2.3.1@gh2/bin/ruby_executable_hooks:15:in `<main>'
- DEBUG [6e899ea2] Tasks: TOP => db:migrate
- DEBUG [6e899ea2] (See full trace by running task with --trace)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement