Sha256: 11747ad4d5d457f37ae7d77e9b8ad1acae6db5b601aedead26e695d6364bd622
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
class CreateHistoricalHeads < ActiveRecord::Migration def up create_table :historical_heads do |t| t.integer :project_id, null: false t.hstore :branches, null: false, default: {} t.timestamps end Project.unretired.with_version_control.each do |project| puts "Checking #{project.slug}" project.repo.refresh! HistoricalHead.create!( project_id: project.id, branches: project.repo.branches) end end def down drop_table :historical_heads end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | db/migrate/20140929004347_create_historical_heads.rb |