Commit a953e459 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

annotated

parent 5ec83801
...@@ -37,5 +37,6 @@ end ...@@ -37,5 +37,6 @@ end
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# closed :boolean default(FALSE), not null # closed :boolean default(FALSE), not null
# position :integer default(0)
# #
...@@ -29,3 +29,17 @@ class Snippet < ActiveRecord::Base ...@@ -29,3 +29,17 @@ class Snippet < ActiveRecord::Base
] ]
end end
end end
# == 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
# updated_at :datetime
# file_name :string(255)
#
...@@ -38,5 +38,6 @@ end ...@@ -38,5 +38,6 @@ end
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# closed :boolean default(FALSE), not null # closed :boolean default(FALSE), not null
# position :integer default(0)
# #
...@@ -14,3 +14,17 @@ describe Snippet do ...@@ -14,3 +14,17 @@ describe Snippet do
it { should validate_presence_of(:content) } it { should validate_presence_of(:content) }
end end
end end
# == 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
# updated_at :datetime
# file_name :string(255)
#
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