Skip to content

Instantly share code, notes, and snippets.

@jamland
Created October 4, 2013 14:39
Show Gist options
  • Save jamland/6827025 to your computer and use it in GitHub Desktop.
Save jamland/6827025 to your computer and use it in GitHub Desktop.
Intergalactic:airbrake-app andy$ export $(cat .env)
Intergalactic:airbrake-app andy$ rake db:migrate
== AddNotificationsSettingsToProjectMemberships: migrating ===================
-- column_exists?(:project_memberships, :send_email_on_error)
-> 0.0026s
-- add_column(:project_memberships, :send_email_on_error, :boolean, {:default=>true})
-> 1.6808s
-- column_exists?(:project_memberships, :send_email_on_comment)
-> 0.0022s
-- add_column(:project_memberships, :send_email_on_comment, :boolean, {:default=>true})
-> 1.9465s
-- column_exists?(:project_memberships, :send_sms_on_error)
-> 0.0023s
-- add_column(:project_memberships, :send_sms_on_error, :boolean, {:default=>false})
-> 1.7602s
-- column_exists?(:project_memberships, :only_production)
-> 0.0022s
-- add_column(:project_memberships, :only_production, :boolean, {:default=>false})
-> 1.8766s
== AddNotificationsSettingsToProjectMemberships: migrated (7.2740s) ==========
== AddUniqueIndexOnAuthToken: migrating ======================================
-- remove_index(:users, :auth_token)
rake aborted!
An error has occurred, all later migrations canceled:
Index name 'index_users_on_auth_token' on table 'users' does not exist/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:587:in `index_name_for_remove'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:366:in `remove_index'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `block in method_missing'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `block in say_with_time'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:458:in `method_missing'
/Users/andy/Sites/repository/airbrake-app/db/migrate/20130926134318_add_unique_index_on_auth_token.rb:3:in `up'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `block in migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `call'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `ddl_transaction'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `block in migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `each'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/bin/ruby_noexec_wrapper:14:in `eval'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Intergalactic:airbrake-app andy$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment