diff options
| author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-28 16:01:14 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-02-28 16:01:14 +0200 |
| commit | dcdb2fdfdb5b5429c945b7d8f6fecd0b3a2da32a (patch) | |
| tree | cd0357361d3f99b5e41fd8f91c0199f3603f2d71 /db/migrate | |
| parent | a847501fd2ffc1c4becc7d0d352d80168d9b3568 (diff) | |
| download | gitlab-ce-dcdb2fdfdb5b5429c945b7d8f6fecd0b3a2da32a.tar.gz | |
Observe issue, merge request, note creation - create event
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20120228130210_create_events.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20120228134252_add_action_to_event.rb | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/db/migrate/20120228130210_create_events.rb b/db/migrate/20120228130210_create_events.rb index 2f15ff3067f..c01f557aaaa 100644 --- a/db/migrate/20120228130210_create_events.rb +++ b/db/migrate/20120228130210_create_events.rb @@ -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 diff --git a/db/migrate/20120228134252_add_action_to_event.rb b/db/migrate/20120228134252_add_action_to_event.rb new file mode 100644 index 00000000000..aade3d90a80 --- /dev/null +++ b/db/migrate/20120228134252_add_action_to_event.rb @@ -0,0 +1,5 @@ +class AddActionToEvent < ActiveRecord::Migration + def change + add_column :events, :action, :integer, :null => true + end +end |
