Skip to content

Instantly share code, notes, and snippets.

@crowdmatt
Created October 25, 2011 05:46
Show Gist options
  • Save crowdmatt/1311425 to your computer and use it in GitHub Desktop.
Save crowdmatt/1311425 to your computer and use it in GitHub Desktop.
== RemoveNameFromOrganizations: migrating ====================================
-- remove_column(:organizations, :name)
-> 0.1580s
-- add_index(:organizations, :domain, {:unique=>true})
rake aborted!
An error has occurred, all later migrations canceled:
ActiveRecord::JDBCError: Key column 'domain' doesn't exist in table: CREATE UNIQUE INDEX `index_organizations_on_domain` ON `organizations` (`domain`)
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