rosa-build/db/migrate/20110405161609_create_build...

30 lines
643 B
Ruby
Raw Normal View History

2011-04-07 14:20:21 +01:00
class CreateBuildLists < ActiveRecord::Migration
def self.up
2014-01-21 04:51:49 +00:00
create_table :build_lists, force: true do |t|
2011-04-07 14:20:21 +01:00
t.integer :bs_id
t.string :container_path
t.integer :status
t.string :branch_name
t.integer :project_id
t.integer :arch_id
t.timestamp :notified_at
t.timestamps
end
2014-01-21 04:51:49 +00:00
add_index :build_lists, :bs_id, unique: true
2011-04-07 14:20:21 +01:00
add_index :build_lists, :project_id
add_index :build_lists, :arch_id
end
def self.down
remove_index :build_lists, :bs_id
remove_index :build_lists, :project_id
remove_index :build_lists, :arch_id
drop_table :build_lists
end
2012-01-30 20:39:34 +00:00
end