Create an ApplicationRecord for models to inherit from
This is the default for Rails 5+, and also paves the way for multiple database support.
This commit is contained in:
parent
a3a95616d9
commit
a41d500b9f
45 changed files with 46 additions and 46 deletions
|
@ -16,7 +16,7 @@
|
|||
# gpx_file_tags_gpx_id_fkey (gpx_id => gpx_files.id)
|
||||
#
|
||||
|
||||
class Tracetag < ActiveRecord::Base
|
||||
class Tracetag < ApplicationRecord
|
||||
self.table_name = "gpx_file_tags"
|
||||
|
||||
belongs_to :trace, :foreign_key => "gpx_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue