diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-01 23:30:07 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-01 23:30:07 +0200 |
commit | 86d7ed33754f80690395309dd307c6d9ecc0022f (patch) | |
tree | d944866c714bb8ec7f8ebf0536767418a6437212 /activerecord/test/schema | |
parent | 7c5ae0a88fc9406857ee362c827c57eb23fd5f95 (diff) | |
download | rails-86d7ed33754f80690395309dd307c6d9ecc0022f.tar.gz rails-86d7ed33754f80690395309dd307c6d9ecc0022f.tar.bz2 rails-86d7ed33754f80690395309dd307c6d9ecc0022f.zip |
singular and collection relations in AR can now specify mass-assignment security options (:as and :without_protection) in build, create and create! methods.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index ceadb05644..9479242e4f 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -438,6 +438,8 @@ ActiveRecord::Schema.define do t.references :number1_fan t.integer :lock_version, :null => false, :default => 0 t.string :comments + t.references :best_friend + t.references :best_friend_of t.timestamps end |