searched the tracker... but didn't manage to find something like this:


 >> User.table_name
=> "users"


 >> User
=> User(id: integer, email: string, encrypted_password: string,  
created_at: datetime, updated_at: datetime, remember_token: string,  
remember_token_expires_at: datetime)


 >> PendingUser.table_name
=> "pending_users"


 >> PendingUser
=> PendingUser(id: integer, email: string, encrypted_password:  
string, created_at: datetime, updated_at: datetime, remember_token:  
string, remember_token_expires_at: datetime)


 >> PendingUser.create! :email => '[EMAIL PROTECTED]', :password  
=> 'foobar'
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such  
column: pending_users.email: SELECT * FROM users   WHERE (LOWER 
(pending_users.email) = '[EMAIL PROTECTED]')  LIMIT 1


 >> PendingUser.ancestors.map(&:name).first(3)
=> ["PendingUser", "User", "ActiveRecord::Base"]


 >> puts IO.read('app/models/pending_user.rb')
class PendingUser < User
   set_table_name 'pending_users'
end



have i overlooked?  Rails 2.0.1...


a @ http://drawohara.com/
--
sleep is the best meditation.
h.h. the 14th dalai lama




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to