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