Closed kumardev closed 11 years ago
rake db:migrate
== CreateCopywritings: migrating ============================================= -- create_table(:copywriting_phrases) -> 0.0149s -- add_index(:copywriting_phrases, [:name, :scope]) -> 0.0024s == CreateCopywritings: migrated (0.0248s) ==================================== == CreateCopywritingTranslationTable: migrating ============================== -- rename_column("copywriting_phrase_translations", :copywriting_phrase_id, :refinery_copywriting_phrase_id) rake aborted! An error has occurred, this and all later migrations canceled: Index name 'temp_index_altered_copywriting_phrase_translations_on_copywriting_phrase_id' on table 'altered_copywriting_phrase_translations' is too long; the limit is 64 characters/usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:573:in `add_index_options' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:351:in `add_index' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:539:in `block in copy_table_indexes' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:522:in `each' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:522:in `copy_table_indexes' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:515:in `copy_table' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:488:in `move_table' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:481:in `block in alter_table' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:480:in `alter_table' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:458:in `rename_column' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `block in method_missing' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `block in say_with_time' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:458:in `method_missing' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:334:in `method_missing' /home/gloscon/Downloads/Te/db/migrate/20130911053328_create_copywriting_translation_table.refinery_copywriting.rb:17:in `up' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:370:in `up' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block (2 levels) in migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block in migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `block (2 levels) in migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:775:in `call' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:775:in `block in ddl_transaction' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/transactions.rb:208:in `transaction' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:775:in `ddl_transaction' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `block in migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `each' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate' /usr/local/rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval' /usr/local/rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>' Tasks: TOP => db:migrate (See full trace by running task with --trace)
Please help :)
This was fixed in #47. See the code for workaround.
rake db:migrate
Please help :)