Event entity created

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 15:09:23 +02:00
parent 34e1580184
commit a847501fd2
9 changed files with 75 additions and 3 deletions

View file

@ -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

View file

@ -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"