aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/event.rb')
-rw-r--r--activerecord/test/models/event.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/event.rb b/activerecord/test/models/event.rb
new file mode 100644
index 0000000000..99fa0feeb7
--- /dev/null
+++ b/activerecord/test/models/event.rb
@@ -0,0 +1,3 @@
+class Event < ActiveRecord::Base
+ validates_uniqueness_of :title
+end \ No newline at end of file