Skip to content

Instantly share code, notes, and snippets.

@forced-request
Last active December 20, 2015 04:39
Show Gist options
  • Save forced-request/6072264 to your computer and use it in GitHub Desktop.
Save forced-request/6072264 to your computer and use it in GitHub Desktop.
== ConvertFriendshipTable: migrating ========================================= -- rename_column(:friendships, :sender, :user) rake aborted! An error has occurred, this and all later migrations canceled: undefined method `to_sym' for nil:NilClass/Users/web/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.13/lib/active_record/connection_adapters/ab…
class ConvertFriendshipTable < ActiveRecord::Migration
def change
rename_column :friendships, :sender, :user
end
end
@forced-request
Copy link
Author

Rails Version: Rails 3.2.13

Ruby Version: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment