summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:18:03 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 02:19:40 +0400
commit3d3e40c251179654d136d9838087f275c549e827 (patch)
tree044fe0fee3efdb0b84ee0b7faa5babdd436a3112
parent8f08fbfd9f768b885c631bdc8bc8ad202c6827a0 (diff)
downloadgitlab-ce-3d3e40c251179654d136d9838087f275c549e827.tar.gz
Personal snippet model added
-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