Skip to content

Instantly share code, notes, and snippets.

@gnusosa
Created June 16, 2015 23:20
Show Gist options
  • Save gnusosa/0ecd958db42f28a4cc35 to your computer and use it in GitHub Desktop.
Save gnusosa/0ecd958db42f28a4cc35 to your computer and use it in GitHub Desktop.
== 20130612005642 TranslateCustomFieldAttributes: migrating ===================
-- table_exists?(:custom_field_attribute_translations)
-> 0.0005s
-- index_exists?("custom_field_attribute_translations", ["custom_field_attribute_id"])
-> 0.0003s
-- add_index("custom_field_attribute_translations", ["custom_field_attribute_id"], {:name=>"index_custom_field_attribute_translations_on_cfa_id"})
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Index name 'index_custom_field_attribute_translations_on_cfa_id' on table 'custom_field_attribute_translations' already exists/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract/schema_statements.rb:819:in `add_index_options'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:523:in `add_index'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:629:in `block in method_missing'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:601:in `block in say_with_time'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:601:in `say_with_time'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:621:in `method_missing'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:387:in `method_missing'
/home/gnusosa/work/dev/coupa_development/db/migrate/20130612005642_translate_custom_field_attributes.rb:24:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:538:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:578:in `exec_migration'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:559:in `block (2 levels) in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:558:in `block in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:557:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:713:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:963:in `block in execute_migration_in_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:1011:in `ddl_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:962:in `execute_migration_in_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:924:in `block in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:920:in `each'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:920:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:768:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:746:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
ArgumentError: Index name 'index_custom_field_attribute_translations_on_cfa_id' on table 'custom_field_attribute_translations' already exists
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract/schema_statements.rb:819:in `add_index_options'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:523:in `add_index'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:629:in `block in method_missing'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:601:in `block in say_with_time'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:601:in `say_with_time'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:621:in `method_missing'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:387:in `method_missing'
/home/gnusosa/work/dev/coupa_development/db/migrate/20130612005642_translate_custom_field_attributes.rb:24:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:538:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:578:in `exec_migration'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:559:in `block (2 levels) in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:558:in `block in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:557:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:713:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:963:in `block in execute_migration_in_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:1011:in `ddl_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:962:in `execute_migration_in_transaction'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:924:in `block in migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:920:in `each'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:920:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:768:in `up'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/migration.rb:746:in `migrate'
/home/gnusosa/.rbenv/versions/2.1.3/gemsets/coupa/gems/activerecord-4.0.12/lib/active_record/railties/databases.rake:42:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment