Commit 3d3e40c251179654d136d9838087f275c549e827
1 parent
8f08fbfd
Exists in
master
and in
4 other branches
Personal snippet model added
Showing
2 changed files
with
25 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
1 | +# == Schema Information | ||
2 | +# | ||
3 | +# Table name: snippets | ||
4 | +# | ||
5 | +# id :integer not null, primary key | ||
6 | +# title :string(255) | ||
7 | +# content :text | ||
8 | +# author_id :integer not null | ||
9 | +# project_id :integer not null | ||
10 | +# created_at :datetime not null | ||
11 | +# updated_at :datetime not null | ||
12 | +# file_name :string(255) | ||
13 | +# expires_at :datetime | ||
14 | +# type :string(255) | ||
15 | +# private :boolean | ||
16 | + | ||
17 | +class PersonalSnippet < Snippet | ||
18 | +end |
spec/factories.rb
@@ -204,6 +204,13 @@ FactoryGirl.define do | @@ -204,6 +204,13 @@ FactoryGirl.define do | ||
204 | file_name | 204 | file_name |
205 | end | 205 | end |
206 | 206 | ||
207 | + factory :personal_snippet do | ||
208 | + author | ||
209 | + title | ||
210 | + content | ||
211 | + file_name | ||
212 | + end | ||
213 | + | ||
207 | factory :snippet do | 214 | factory :snippet do |
208 | author | 215 | author |
209 | title | 216 | title |