aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/project.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-14 12:32:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-14 12:32:29 +0000
commit605bc77533cf3b6700e91eda8994cdf6b82341cc (patch)
tree687a1c7e3bd319be5c0a6090dea190d6a8778658 /activerecord/test/fixtures/project.rb
parent317f13c2a8c047b3868a58e0121453b092557dba (diff)
downloadrails-605bc77533cf3b6700e91eda8994cdf6b82341cc.tar.gz
rails-605bc77533cf3b6700e91eda8994cdf6b82341cc.tar.bz2
rails-605bc77533cf3b6700e91eda8994cdf6b82341cc.zip
Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance wont have any magic side effects
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/project.rb')
-rw-r--r--activerecord/test/fixtures/project.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/project.rb b/activerecord/test/fixtures/project.rb
index 1ccf39d7cf..fddea7b61c 100644
--- a/activerecord/test/fixtures/project.rb
+++ b/activerecord/test/fixtures/project.rb
@@ -1,4 +1,10 @@
class Project < ActiveRecord::Base
has_and_belongs_to_many :developers, :uniq => true
has_and_belongs_to_many :developers_named_david, :class_name => "Developer", :conditions => "name = 'David'", :uniq => true
+end
+
+class SpecialProject < Project
+ def hello_world
+ "hello there!"
+ end
end \ No newline at end of file