summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/personal_snippet.rb18
-rw-r--r--spec/factories.rb7
2 files changed, 25 insertions, 0 deletions
diff --git a/app/models/personal_snippet.rb b/app/models/personal_snippet.rb
new file mode 100644
index 00000000000..d581c6092aa
--- /dev/null
+++ b/app/models/personal_snippet.rb
@@ -0,0 +1,18 @@
+# == Schema Information
+#
+# Table name: snippets
+#
+# id :integer not null, primary key
+# title :string(255)
+# content :text
+# author_id :integer not null
+# project_id :integer not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# file_name :string(255)
+# expires_at :datetime
+# type :string(255)
+# private :boolean
+
+class PersonalSnippet < Snippet
+end
diff --git a/spec/factories.rb b/spec/factories.rb
index 67caec9f851..2e6fdbf11ab 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -204,6 +204,13 @@ FactoryGirl.define do
file_name
end
+ factory :personal_snippet do
+ author
+ title
+ content
+ file_name
+ end
+
factory :snippet do
author
title