2012-02-28 14:09:23 +01:00
|
|
|
class CreateEvents < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :events do |t|
|
2012-02-28 15:01:14 +01:00
|
|
|
t.string :target_type, :null => true
|
|
|
|
t.integer :target_id, :null => true
|
|
|
|
|
2012-02-28 14:09:23 +01:00
|
|
|
t.string :title, :null => true
|
|
|
|
t.text :data, :null => true
|
|
|
|
t.integer :project_id, :null => true
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|