aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/app/models/comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/code/getting_started/app/models/comment.rb')
-rw-r--r--railties/guides/code/getting_started/app/models/comment.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/guides/code/getting_started/app/models/comment.rb b/railties/guides/code/getting_started/app/models/comment.rb
new file mode 100644
index 0000000000..4e76c5b5b0
--- /dev/null
+++ b/railties/guides/code/getting_started/app/models/comment.rb
@@ -0,0 +1,3 @@
+class Comment < ActiveRecord::Base
+ belongs_to :post
+end