Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
a847501f
Commit
a847501f
authored
Feb 28, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event entity created
parent
34e15801
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
75 additions
and
3 deletions
+75
-3
app/models/event.rb
app/models/event.rb
+17
-0
app/models/project.rb
app/models/project.rb
+1
-0
app/models/users_project.rb
app/models/users_project.rb
+0
-1
app/models/wiki.rb
app/models/wiki.rb
+13
-0
db/migrate/20120228130210_create_events.rb
db/migrate/20120228130210_create_events.rb
+13
-0
db/schema.rb
db/schema.rb
+11
-1
spec/models/event_spec.rb
spec/models/event_spec.rb
+19
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-0
spec/models/users_project_spec.rb
spec/models/users_project_spec.rb
+0
-1
No files found.
app/models/event.rb
0 → 100644
View file @
a847501f
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
#
app/models/project.rb
View file @
a847501f
...
...
@@ -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
#
app/models/users_project.rb
View file @
a847501f
...
...
@@ -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
#
app/models/wiki.rb
View file @
a847501f
...
...
@@ -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
#
db/migrate/20120228130210_create_events.rb
0 → 100644
View file @
a847501f
class
CreateEvents
<
ActiveRecord
::
Migration
def
change
create_table
:events
do
|
t
|
t
.
string
:data_type
,
:null
=>
true
t
.
string
:data_id
,
:null
=>
true
t
.
string
:title
,
:null
=>
true
t
.
text
:data
,
:null
=>
true
t
.
integer
:project_id
,
:null
=>
true
t
.
timestamps
end
end
end
db/schema.rb
View file @
a847501f
...
...
@@ -11,7 +11,17 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
20120219193300
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
20120228130210
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"data_type"
t
.
string
"data_id"
t
.
string
"title"
t
.
text
"data"
t
.
integer
"project_id"
t
.
datetime
"created_at"
,
:null
=>
false
t
.
datetime
"updated_at"
,
:null
=>
false
end
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
...
...
spec/models/event_spec.rb
0 → 100644
View file @
a847501f
# == 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
#
require
'spec_helper'
describe
Event
do
pending
"add some examples to (or delete)
#{
__FILE__
}
"
end
spec/models/project_spec.rb
View file @
a847501f
...
...
@@ -303,5 +303,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
#
spec/models/users_project_spec.rb
View file @
a847501f
...
...
@@ -25,7 +25,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
#
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment