Skip to content

Commit

Permalink
Documentation for AR 3.2 style syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aake committed Oct 8, 2012
1 parent 06bd0a8 commit 349c961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.markdown
Expand Up @@ -50,6 +50,12 @@ re-write `Person` like so:
set_table_name :t_personnel
end

# For Rails 3.2+ this syntax is also supported
class Person < ActiveRecord::Base
self.schema = :hr
self.table_name = :t_personnel
end

Then, if you need to override the actual schema name in some
environments, configure `ActiveRecord::Base.schemas`:

Expand Down

0 comments on commit 349c961

Please sign in to comment.