From 96eea30279f2cd6819d9cb7b9be7ae3ab75dcf84 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 2 Nov 2013 22:35:37 +0100 Subject: [PATCH] Fixed syntax error. --- app/models/user.rb | 4 ++-- db/migrate/20120101000001_create_base.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 777e51d63..1b2c1f15f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -552,8 +552,8 @@ returns response = UserAgent.request( self.image_source ) if !response.success? self.update_column( :image, 'none' ) - puts "WARNING: Can't fetch '#{url}', http code: #{response.code.to_s}" - #raise "Can't fetch '#{url}', http code: #{response.code.to_s}" + puts "WARNING: Can't fetch '#{self.image_source}', http code: #{response.code.to_s}" + #raise "Can't fetch '#{self.image_source}', http code: #{response.code.to_s}" return end diff --git a/db/migrate/20120101000001_create_base.rb b/db/migrate/20120101000001_create_base.rb index 8bda202bb..1ec761d7f 100644 --- a/db/migrate/20120101000001_create_base.rb +++ b/db/migrate/20120101000001_create_base.rb @@ -15,7 +15,7 @@ class CreateBase < ActiveRecord::Migration t.column :firstname, :string, :limit => 100, :null => true t.column :lastname, :string, :limit => 100, :null => true t.column :email, :string, :limit => 140, :null => true - t.column :image, :string, :limit => 200, :null => true + t.column :image, :string, :limit => 100, :null => true t.column :web, :string, :limit => 100, :null => true t.column :password, :string, :limit => 100, :null => true t.column :phone, :string, :limit => 100, :null => true @@ -31,7 +31,7 @@ class CreateBase < ActiveRecord::Migration t.column :note, :string, :limit => 250, :null => true t.column :last_login, :timestamp, :null => true t.column :source, :string, :limit => 200, :null => true - t.column :preferences, :string, :limit => 4000,:null => true + t.column :preferences, :string, :limit => 8000,:null => true t.column :updated_by_id, :integer, :null => false t.column :created_by_id, :integer, :null => false t.timestamps