Sha256: a4d34259b547edca8cf6d18c162fe7e6bff422736703fbec3d69f71b90870dad

Contents?: true

Size: 317 Bytes

Versions: 27

Compression:

Stored size: 317 Bytes

Contents

class AddFeaturesToProjects < ActiveRecord::Migration
  def up
    add_column :projects, :selected_features, :text, array: true

    Project.reset_column_information
    Project.update_all(selected_features: Houston.config.project_features)
  end

  def down
    remove_column :projects, :selected_features
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
houston-core-0.9.2 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.9.1 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.9.0 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.9.0.rc1 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.4 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.3 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.2 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.1 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.0 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.0.pre2 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.8.0.pre db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.7.0 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.7.0.beta4 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.7.0.beta3 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.7.0.beta2 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.7.0.beta db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.6.3 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.6.2 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.6.1 db/migrate/20150222205616_add_features_to_projects.rb
houston-core-0.6.0 db/migrate/20150222205616_add_features_to_projects.rb