2011-03-15 21:52:27 +00:00
|
|
|
class CreateRpms < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :rpms do |t|
|
2014-01-21 04:51:49 +00:00
|
|
|
t.string :name, null: false
|
|
|
|
t.integer :arch_id, null: false
|
|
|
|
t.integer :project_id, null: false
|
2011-03-15 21:52:27 +00:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
2014-01-21 04:51:49 +00:00
|
|
|
|
2011-03-15 21:52:27 +00:00
|
|
|
add_index :rpms, :project_id
|
|
|
|
add_index :rpms, [:project_id, :arch_id]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :rpms
|
|
|
|
end
|
|
|
|
end
|