aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/electron.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/electron.rb')
-rw-r--r--activerecord/test/models/electron.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/electron.rb b/activerecord/test/models/electron.rb
index 35af9f679b..6fc270673f 100644
--- a/activerecord/test/models/electron.rb
+++ b/activerecord/test/models/electron.rb
@@ -1,3 +1,5 @@
class Electron < ActiveRecord::Base
belongs_to :molecule
+
+ validates_presence_of :name
end