Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@foreman settings.d]# foreman-rake db:migrate --trace
- ** Invoke db:migrate (first_time)
- ** Invoke environment (first_time)
- ** Execute environment
- ** Invoke db:load_config (first_time)
- ** Execute db:load_config
- ** Execute db:migrate
- == AddUniqueIndexToParameter: migrating ======================================
- -- add_index(:parameters, [:reference_id, :name], {:unique=>true})
- rake aborted!
- An error has occurred, this and all later migrations canceled:
- PGError: ERROR: could not create unique index "index_parameters_on_reference_id_and_name"
- DETAIL: Table contains duplicated values.
- : CREATE UNIQUE INDEX "index_parameters_on_reference_id_and_name" ON "parameters" ("reference_id", "name")
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `async_exec'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `block in execute'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
- /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:653:in `execute'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/schema_statements.rb:352:in `add_index'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:466:in `block in method_missing'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:438:in `block in say_with_time'
- /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:280:in `measure'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:438:in `say_with_time'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:458:in `method_missing'
- /usr/share/foreman/db/migrate/20140805114754_add_unique_index_to_parameter.rb:3:in `up'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
- /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:280:in `measure'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `block in migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:123:in `with_connection'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:389:in `migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:528:in `migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `call'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `block in ddl_transaction'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:775:in `ddl_transaction'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:719:in `block in migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `each'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:570:in `up'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/migration.rb:551:in `migrate'
- /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:153:in `block (2 levels) in <top (required)>'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
- /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'
- /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling'
- /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
- /opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
- Tasks: TOP => db:migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement