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 /db | |
parent | 34e15801845f806e0f0f04aff8ba78962f8a9086 (diff) |
Event entity created
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20120228130210_create_events.rb | 13 | ||||
-rw-r--r-- | db/schema.rb | 12 |
2 files changed, 24 insertions, 1 deletions
diff --git a/db/migrate/20120228130210_create_events.rb b/db/migrate/20120228130210_create_events.rb new file mode 100644 index 00000000000..2f15ff3067f --- /dev/null +++ b/db/migrate/20120228130210_create_events.rb @@ -0,0 +1,13 @@ +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 diff --git a/db/schema.rb b/db/schema.rb index c32df7ea198..b9a43370e4c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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" |