aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-24 16:55:55 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-24 16:55:55 +0000
commit87535f50e92f7567d817b455e4f7f4a44371710f (patch)
treef225d8032f3ef489a7ff84622702488b3fe78cb2 /activerecord/lib/active_record/base.rb
parentac963f06233d24f26570901a60edabed4792688d (diff)
downloadrails-87535f50e92f7567d817b455e4f7f4a44371710f.tar.gz
rails-87535f50e92f7567d817b455e4f7f4a44371710f.tar.bz2
rails-87535f50e92f7567d817b455e4f7f4a44371710f.zip
SchemaDumper now doesn't fail anymore when there are unknown column types in the schema. Instead the table is ignored and a Comment is left in the schema.rb also added ActiveRecord::Base.schema_ignore_tables for dealing with funky tables like the tesearch2 ones.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index a08cd0f2df..3beabda380 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -332,6 +332,12 @@ module ActiveRecord #:nodoc:
cattr_accessor :schema_format
@@schema_format = :sql
+ # A list of tables which should not be dumped to the schema.
+ # Acceptable values are strings as well as regexp.
+ # This setting is only used if schema_format == :ruby
+ cattr_accessor :schema_ignore_tables
+ @@schema_ignore_tables = []
+
class << self # Class methods
# Find operates with three different retrieval approaches:
#