Event entity created

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 15:09:23 +02:00
parent 34e1580184
commit a847501fd2
9 changed files with 75 additions and 3 deletions

17
app/models/event.rb Normal file
View file

@ -0,0 +1,17 @@
class Event < ActiveRecord::Base
belongs_to :project
serialize :data
end
# == Schema Information
#
# Table name: events
#
# id :integer not null, primary key
# data_type :string(255)
# data_id :string(255)
# title :string(255)
# data :text
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#

View file

@ -364,5 +364,6 @@ end
# issues_enabled :boolean default(TRUE), not null
# wall_enabled :boolean default(TRUE), not null
# merge_requests_enabled :boolean default(TRUE), not null
# wiki_enabled :boolean default(TRUE), not null
#

View file

@ -80,7 +80,6 @@ end
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# repo_access :integer default(0), not null
# project_access :integer default(0), not null
#

View file

@ -31,3 +31,16 @@ class Wiki < ActiveRecord::Base
end
end
# == Schema Information
#
# Table name: wikis
#
# id :integer not null, primary key
# title :string(255)
# content :text
# project_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# slug :string(255)
# user_id :integer
#