Displaying 4 results from an estimated 4 matches for "avatar_file_size".
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
...> "100*100>" }
created a migration file with following columns => class
AddAvatarColumnsToPicusers < ActiveRecord::Migration
def self.up
add_column :picusers, :avatar_file_name, :string
add_column :picusers, :avatar_content_type, :string
add_column :picusers, :avatar_file_size, :integer
add_column :picusers, :avatar_updated_at, :datetime
end
def
self.down
remove_column :picusers, :avatar_file_name
remove_column :picusers, :avatar_content_type
remove_column :picusers, :avatar_file_size
remove_colu...
2009 Jan 07
0
how rails insert object id to database?
[4;35;1mUser Create (0.5ms) [0m [0mINSERT INTO `users` (`name`,
`avatar_file_name`, `avatar_file_size`, `created_at`, `updated_at`,
`avatar_content_type`) VALUES(''hello'', ''Screenshot.png'', 253800,
''2009-01-08 08:27:19'', ''2009-01-08 08:27:19'', ''image/png'') [0m
[paperclip] Saving attachments.
[paperclip] Saving...
2008 Dec 04
1
upload test images using rake with populator
I am wondering if it is possible to upload test images to the database
along with the other fake user data. I am using populator along with
faker for fake test data and it is working very well. I am able to do
things like:
User.populate 100 do |user|
user.username = Faker::Name.first_name
user.email = Faker::Internet.email
end
but I am wondering if theres a way to do
2010 Aug 07
12
Paperclip Trouble - Not Writing to the Database
...new''
end
end
When I try to create a new user with an avatar the SQL (from the server
logs) is:
INSERT INTO `users`
(`name`,
`email`,
`created_at`,
`updated_at`,
`encrypted_password`,
`salt`,
`remember_token`,
`admin`,
`avatar_file_name`,
`avatar_content_type`,
`avatar_file_size`,
`avatar_updated_at`)
VALUES
(''Example User'',
''foo-hD60eqBaY0I@public.gmane.org'',
''2010-08-07 00:18:52'',
''2010-08-07 00:18:52'',
''e49ab5f50085e13f986e0a89acd3d709131b45c3bb8a74fae69a8b8e58c0fcd3'...