Skip to content

Commit

Permalink
[add] アソシエーションの変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadowaki Shunrei committed Nov 22, 2016
1 parent 66e929c commit dfa06c1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion app/models/author.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
class Author < ActiveRecord::Base
class Author < ActiveRecord::Bas
has_many :post
end
1 change: 1 addition & 0 deletions app/models/post.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
class Post < ActiveRecord::Base
belongs_to :author
end
Binary file added db/.DS_Store
Binary file not shown.

0 comments on commit dfa06c1

Please sign in to comment.