Last active
December 20, 2015 04:39
-
-
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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ConvertFriendshipTable < ActiveRecord::Migration | |
def change | |
rename_column :friendships, :sender, :user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rails Version: Rails 3.2.13
Ruby Version: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]