Personal snippet model added

This commit is contained in:
Andrew8xx8 2013-03-25 02:18:03 +04:00
parent 8f08fbfd9f
commit 3d3e40c251
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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