Skip to content

Commit bf4aa5e

Browse files
committed
Add and inherit ApplicationRecord model
1 parent 7b887aa commit bf4aa5e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/models/application_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
self.abstract_class = true
3+
end

app/models/dojo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
class Dojo < ActiveRecord::Base
2+
class Dojo < ApplicationRecord
33
NUM_OF_COUNTRIES = "70"
44
NUM_OF_WHOLE_DOJOS = "1,200"
55
NUM_OF_JAPAN_DOJOS = "70"

0 commit comments

Comments
 (0)