aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'guides/code/getting_started/app/models')
-rw-r--r--guides/code/getting_started/app/models/.gitkeep0
-rw-r--r--guides/code/getting_started/app/models/comment.rb3
-rw-r--r--guides/code/getting_started/app/models/post.rb6
3 files changed, 0 insertions, 9 deletions
diff --git a/guides/code/getting_started/app/models/.gitkeep b/guides/code/getting_started/app/models/.gitkeep
deleted file mode 100644
index e69de29bb2..0000000000
--- a/guides/code/getting_started/app/models/.gitkeep
+++ /dev/null
diff --git a/guides/code/getting_started/app/models/comment.rb b/guides/code/getting_started/app/models/comment.rb
deleted file mode 100644
index 4e76c5b5b0..0000000000
--- a/guides/code/getting_started/app/models/comment.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class Comment < ActiveRecord::Base
- belongs_to :post
-end
diff --git a/guides/code/getting_started/app/models/post.rb b/guides/code/getting_started/app/models/post.rb
deleted file mode 100644
index 21387340b0..0000000000
--- a/guides/code/getting_started/app/models/post.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-class Post < ActiveRecord::Base
- validates :title, :presence => true,
- :length => { :minimum => 5 }
-
- has_many :comments, :dependent => :destroy
-end