Sha256: 6c5f4ea35b55b38fa7987a9a56a9878a0e59368e123f683e2b3139b898785feb

Contents?: true

Size: 783 Bytes

Versions: 28

Compression:

Stored size: 783 Bytes

Contents

class RemoveUnusedFieldsFromProjects < ActiveRecord::Migration
  def up
    remove_column :projects, :kanban_field
    remove_column :projects, :development_id
    remove_column :projects, :testing_id
    remove_column :projects, :production_id
    remove_column :projects, :assign_health_query
    remove_column :projects, :new_tickets_query
    remove_column :projects, :git_last_sync_at
  end

  def down
    add_column :projects, :kanban_field, :string
    add_column :projects, :development_id, :integer
    add_column :projects, :testing_id, :integer
    add_column :projects, :production_id, :integer
    add_column :projects, :assign_health_query, :string
    add_column :projects, :new_tickets_query, :string
    add_column :projects, :git_last_sync_at, :datetime
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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