Inherit models from ApplicationRecord instead of ActiveRecord::Base.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class ArtistUrl < ActiveRecord::Base
|
||||
class ArtistUrl < ApplicationRecord
|
||||
before_save :initialize_normalized_url, on: [ :create ]
|
||||
before_save :normalize
|
||||
validates_presence_of :url
|
||||
|
||||
Reference in New Issue
Block a user