Observe issue, merge request, note creation - create event
This commit is contained in:
parent
a847501fd2
commit
dcdb2fdfdb
12 changed files with 130 additions and 25 deletions
|
@ -1,8 +1,9 @@
|
|||
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 :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
|
||||
|
|
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
|
11
db/schema.rb
11
db/schema.rb
|
@ -11,16 +11,17 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120228130210) do
|
||||
ActiveRecord::Schema.define(:version => 20120228134252) do
|
||||
|
||||
create_table "events", :force => true do |t|
|
||||
t.string "data_type"
|
||||
t.string "data_id"
|
||||
t.string "target_type"
|
||||
t.integer "target_id"
|
||||
t.string "title"
|
||||
t.text "data"
|
||||
t.integer "project_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "action"
|
||||
end
|
||||
|
||||
create_table "issues", :force => true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue