Personal snippet model added
This commit is contained in:
parent
8f08fbfd9f
commit
3d3e40c251
2 changed files with 25 additions and 0 deletions
18
app/models/personal_snippet.rb
Normal file
18
app/models/personal_snippet.rb
Normal 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
|
|
@ -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…
Reference in a new issue