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

17 lines
452 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
2014-01-21 04:51:49 +00:00
t.text :description, default: ''
t.text :references, default: ''
t.text :update_type, default: ''
2012-05-04 18:12:51 +01:00
t.timestamps
end
2014-01-21 04:51:49 +00:00
add_index :advisories, :advisory_id, unique: true
2012-05-04 18:12:51 +01:00
add_index :advisories, :project_id
add_index :advisories, :update_type
end
end