Skip to content
Snippets Groups Projects
Commit 3d3e40c2 authored by Andrew8xx8's avatar Andrew8xx8
Browse files

Personal snippet model added

parent 8f08fbfd
No related branches found
No related tags found
1 merge request!3351Personal snipepts support added
# == 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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment