about summary refs log tree commit diff stats
path: root/app/models/record.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/record.rb')
-rw-r--r--app/models/record.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/record.rb b/app/models/record.rb new file mode 100644 index 0000000..5837702 --- /dev/null +++ b/app/models/record.rb
@@ -0,0 +1,5 @@
1class Record < ApplicationRecord
2 belongs_to :recordable, polymorphic: true
3
4 validates :description, :recordable, presence: true
5end