rosa-build/db/migrate/20120428053303_create_advis...

17 lines
464 B
Ruby
Raw Normal View History

2012-05-04 18:12:51 +01:00
class CreateAdvisories < ActiveRecord::Migration
def change
create_table :advisories do |t|
t.string :advisory_id
t.integer :project_id
t.text :description, :default => ''
t.text :references, :default => ''
t.text :update_type, :default => ''
t.timestamps
end
add_index :advisories, :advisory_id, :unique => true
add_index :advisories, :project_id
add_index :advisories, :update_type
end
end