Fixed syntax error.

This commit is contained in:
Martin Edenhofer 2013-11-02 22:35:37 +01:00
parent 3b405562cc
commit 96eea30279
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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