Skip to content

Commit

Permalink
Testing user_id login issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bryansattler committed Nov 24, 2013
1 parent a92918c commit c4c638d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class User < ActiveRecord::Base
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :avatar, :comments
# attr_accessible :title, :body
has_many :posts
  has_many :comments
has_many :comments

before_create :set_member
mount_uploader :avatar, AvatarUploader
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131123183611_add_comments_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddCommentsToUsers < ActiveRecord::Migration
def change
add_column :comments, :user_id, :string
add_column :comments, :user_id, :integer
end
end

0 comments on commit c4c638d

Please sign in to comment.