Handle not ready repos
[gitorious.git] / db / migrate / 20131202175633_add_features_to_projects.rb
blob8a1f9982a07fc028a7703704e12df48467abe095
1 class AddFeaturesToProjects < ActiveRecord::Migration
2   def change
3     default_value = [].to_yaml
4     add_column :projects, :features, :string, :default => default_value, :null => false
5     execute "UPDATE projects SET features = '#{default_value}'"
6   end
7 end