2013-08-22 17:12:54 +01:00
|
|
|
class CreateRepositoryStatuses < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :repository_statuses do |t|
|
2014-01-21 04:51:49 +00:00
|
|
|
t.integer :repository_id, null: false
|
|
|
|
t.integer :platform_id, null: false
|
|
|
|
t.integer :status, default: 0
|
2013-08-22 17:12:54 +01:00
|
|
|
t.datetime :last_regenerated_at
|
|
|
|
t.integer :last_regenerated_status
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
2014-01-21 04:51:49 +00:00
|
|
|
add_index :repository_statuses, [:repository_id, :platform_id], unique: true
|
2013-08-22 17:12:54 +01:00
|
|
|
end
|
|
|
|
end
|