annotated
This commit is contained in:
parent
783ca89796
commit
d03f2687c5
|
@ -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
|
||||||
]
|
]
|
||||||
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
|
||||||
# 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
|
||||||
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)
|
||||||
|
#
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue