aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAltech <takeno.sh@gmail.com>2017-10-19 16:30:31 +0900
committerAltech <takeno.sh@gmail.com>2017-10-20 19:42:44 +0900
commite9f82e76e83497db094fe63104f548453fbe512e (patch)
treeffccdf95e5aa1069185cc1d810035862847b0b99 /activerecord/test/models
parentb7bf70982395ee5fd2e89064f87f268eeddb9d6d (diff)
downloadrails-e9f82e76e83497db094fe63104f548453fbe512e.tar.gz
rails-e9f82e76e83497db094fe63104f548453fbe512e.tar.bz2
rails-e9f82e76e83497db094fe63104f548453fbe512e.zip
Convert ignored_columns to a list of string
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/developer.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb
index 2a86fe9eba..8881c69368 100644
--- a/activerecord/test/models/developer.rb
+++ b/activerecord/test/models/developer.rb
@@ -90,6 +90,14 @@ end
class SubDeveloper < Developer
end
+class SymbolIgnoredDeveloper < ActiveRecord::Base
+ self.table_name = "developers"
+ self.ignored_columns = [:first_name, :last_name]
+
+ attr_accessor :last_name
+ define_attribute_method "last_name"
+end
+
class AuditLog < ActiveRecord::Base
belongs_to :developer, validate: true
belongs_to :unvalidated_developer, class_name: "Developer"