rosa-build/db/migrate/20130822154741_create_repos...

15 lines
435 B
Ruby
Raw Normal View History

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
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
end
end