From 1bc30b18b729d2decd626cfa8383ed4eb4ee29b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 27 Jan 2015 11:21:42 -0200 Subject: Restore useful documentation removed at 3729103e17e00494c8eae76e8a4ee1ac990d3450 [ci skip] --- activerecord/lib/active_record/model_schema.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/model_schema.rb b/activerecord/lib/active_record/model_schema.rb index a8f326a218..af0b667262 100644 --- a/activerecord/lib/active_record/model_schema.rb +++ b/activerecord/lib/active_record/model_schema.rb @@ -105,6 +105,12 @@ module ActiveRecord # +table_name_suffix+ is appended. So if you have "myapp_" as a prefix, # the table name guess for an Invoice class becomes "myapp_invoices". # Invoice::Lineitem becomes "myapp_invoice_lineitems". + # + # You can also set your own table name explicitly: + # + # class Mouse < ActiveRecord::Base + # self.table_name = "mice" + # end def table_name reset_table_name unless defined?(@table_name) @table_name -- cgit v1.2.3