aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-01-14 11:43:57 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2014-01-14 11:43:57 -0800
commit09035e622f9876cddc558ea065929cb862ca0f13 (patch)
treea562054a732e91256ddc4c458ae931be6436d9d1 /activerecord/test/models
parentc7cf7f476a47c9e4c60a369efa338a1fa9d81d6c (diff)
parentb23330745bddd6729f95fb8487e3ec4857e4bb58 (diff)
downloadrails-09035e622f9876cddc558ea065929cb862ca0f13.tar.gz
rails-09035e622f9876cddc558ea065929cb862ca0f13.tar.bz2
rails-09035e622f9876cddc558ea065929cb862ca0f13.zip
Merge branch 'master' into set_binds
* master: don't establish a new connection when testing with `sqlite3_mem`. sqlite >= 3.8.0 supports partial indexes Don't try to get the subclass if the inheritance column doesn't exist Enum mappings are now exposed via class methods instead of constants. Fix fields_for documentation with index option [ci skip] quick pass through Active Record CHANGELOG. [ci skip] [ci skip] Grammar correction single quotes for controller generated routes [ci skip] Added alias to CSRF Set NameError#name
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/shop.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/shop.rb b/activerecord/test/models/shop.rb
index 81414227ea..607a0a5b41 100644
--- a/activerecord/test/models/shop.rb
+++ b/activerecord/test/models/shop.rb
@@ -5,6 +5,11 @@ module Shop
class Product < ActiveRecord::Base
has_many :variants, :dependent => :delete_all
+ belongs_to :type
+
+ class Type < ActiveRecord::Base
+ has_many :products
+ end
end
class Variant < ActiveRecord::Base