Skip to content

Instantly share code, notes, and snippets.

@ltackett
Created September 11, 2009 15:21
Show Gist options
  • Select an option

  • Save ltackett/185361 to your computer and use it in GitHub Desktop.

Select an option

Save ltackett/185361 to your computer and use it in GitHub Desktop.
-- rename_column(:ratings, :user_id, :creator_id)
-> 0.3180s
-- rename_column(:recommendations, :user_id, :creator_id)
-> 0.1072s
== RenameUserAssociationToCreator: migrated (2.6912s) ========================
== CreateLinkTables: migrating ===============================================
The name 'UserCalendarEventLink' is either already used in your application or reserved by Ruby on Rails.
Please choose an alternative and run this generator again.
-- create_table(:user_calendar_event_links)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql::Error: Table 'user_calendar_event_links' already exists: CREATE TABLE `user_calendar_event_links` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `context_id` int(11), `resource_id` int(11), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
(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