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

16 lines
364 B
Ruby
Raw Normal View History

2014-05-02 21:38:28 +01:00
class CreateBuildScripts < ActiveRecord::Migration
def change
create_table :build_scripts do |t|
t.integer :project_id, null: false
t.string :treeish, null: false
t.string :commit
t.string :sha1
t.string :status
t.timestamps
end
add_index :build_scripts, [:project_id, :treeish], unique: true
end
end