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

17 lines
486 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|
2014-08-20 21:49:26 +01:00
t.string :advisory_id, references: nil
t.integer :project_id, references: nil
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