Event entity created
Observe issue, merge request, note creation - create event register push event
This commit is contained in:
parent
85954621a3
commit
0a0710a548
16 changed files with 310 additions and 104 deletions
14
db/migrate/20120228130210_create_events.rb
Normal file
14
db/migrate/20120228130210_create_events.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class CreateEvents < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :events do |t|
|
||||
t.string :target_type, :null => true
|
||||
t.integer :target_id, :null => true
|
||||
|
||||
t.string :title, :null => true
|
||||
t.text :data, :null => true
|
||||
t.integer :project_id, :null => true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
5
db/migrate/20120228134252_add_action_to_event.rb
Normal file
5
db/migrate/20120228134252_add_action_to_event.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddActionToEvent < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :events, :action, :integer, :null => true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue