aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorTan Huynh <danhuynhdev@gmail.com>2018-03-20 13:02:23 +0700
committerTan Huynh <danhuynhdev@gmail.com>2018-03-23 08:01:46 +0700
commit3f297be72b0a774d07cea3aa243f81cdbd6db2a3 (patch)
tree354ac6804301119667ea3705c56f627ff517f96a /activerecord/test/schema
parent57e145387ba57602afb0907f2a3897d37089dc4e (diff)
downloadrails-3f297be72b0a774d07cea3aa243f81cdbd6db2a3.tar.gz
rails-3f297be72b0a774d07cea3aa243f81cdbd6db2a3.tar.bz2
rails-3f297be72b0a774d07cea3aa243f81cdbd6db2a3.zip
Add custom prefix to ActiveRecord::Store accessors
Add a prefix option to ActiveRecord::Store.store_accessor and ActiveRecord::Store.store. This option allows stores to have identical keys with different accessors.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index ca86100bc5..b9c7d447af 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -21,6 +21,8 @@ ActiveRecord::Schema.define do
create_table :admin_users, force: true do |t|
t.string :name
t.string :settings, null: true, limit: 1024
+ t.string :parent, null: true, limit: 1024
+ t.string :spouse, null: true, limit: 1024
# MySQL does not allow default values for blobs. Fake it out with a
# big varchar below.
t.string :preferences, null: true, default: "", limit: 1024