diff options
Diffstat (limited to 'activerecord/test/fixtures/developer.rb')
-rw-r--r-- | activerecord/test/fixtures/developer.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/developer.rb b/activerecord/test/fixtures/developer.rb new file mode 100644 index 0000000000..737fc3824b --- /dev/null +++ b/activerecord/test/fixtures/developer.rb @@ -0,0 +1,8 @@ +class Developer < ActiveRecord::Base + has_and_belongs_to_many :projects + + protected + def validate + errors.add_on_boundry_breaking("name", 3..20) + end +end
\ No newline at end of file |