Commit 3d3e40c2 authored by Andrew8xx8's avatar Andrew8xx8

Personal snippet model added

parent 8f08fbfd
# == 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
...@@ -204,6 +204,13 @@ FactoryGirl.define do ...@@ -204,6 +204,13 @@ FactoryGirl.define do
file_name file_name
end end
factory :personal_snippet do
author
title
content
file_name
end
factory :snippet do factory :snippet do
author author
title title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment