diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-28 17:09:23 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-28 17:09:23 +0400 |
commit | a847501fd2ffc1c4becc7d0d352d80168d9b3568 (patch) | |
tree | b3b75ffaac483d1cb5ec497743e2525db1fd00d9 /app/models | |
parent | 34e15801845f806e0f0f04aff8ba78962f8a9086 (diff) |
Event entity created
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/event.rb | 17 | ||||
-rw-r--r-- | app/models/project.rb | 1 | ||||
-rw-r--r-- | app/models/users_project.rb | 1 | ||||
-rw-r--r-- | app/models/wiki.rb | 13 |
4 files changed, 31 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb new file mode 100644 index 00000000000..c2d09f1b595 --- /dev/null +++ b/app/models/event.rb @@ -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 +# diff --git a/app/models/project.rb b/app/models/project.rb index b59dcd80c87..939996390e8 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 # diff --git a/app/models/users_project.rb b/app/models/users_project.rb index bc625225bc4..726a85ae5b0 100644 --- a/app/models/users_project.rb +++ b/app/models/users_project.rb @@ -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 # diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 62ac4cb8a9a..0f19567c4bf 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -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 +# |