Skip to content

Commit 829a0e6

Browse files
committed
Merge remote-tracking branch 'upstream/master' into support-facebook-api
2 parents cca2f3a + d3a2622 commit 829a0e6

File tree

10 files changed

+203
-3
lines changed

10 files changed

+203
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Fulfill the requirements, setup by following the instructions, and send a pull r
2626
1. Fork and clone this repository.
2727
1. `$ bundle install --without production`
2828
1. `$ bundle exec rails db:migrate`
29+
1. `$ bundle exec rails db:seed`
2930
1. `$ bundle exec rails dojos:update_db_by_yaml`
3031
1. `$ bundle exec rails dojo_event_services:upsert`
3132
1. `$ bundle exec rails test`

app/models/dojo.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Dojo < ApplicationRecord
33
NUM_OF_WHOLE_DOJOS = "1,400"
44
NUM_OF_JAPAN_DOJOS = Dojo.count.to_s
55

6+
belongs_to :prefecture
67
has_one :dojo_event_service, dependent: :destroy
78
has_many :event_histories, dependent: :destroy
89

app/models/prefecture.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Prefecture < ApplicationRecord
2+
validates :name, presence: true, uniqueness: true
3+
validates :region, presence: true
4+
end

db/docs/teikan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
 細谷 崇 (捺印)
177177

178178
上記設立時社員2名の定款作成代理人
179-
司法書士 中村圭吾
180-
(住所略)
179+
 司法書士 中村圭吾
180+
 (住所略)
181181

182182

0 commit comments

Comments
 (0)