Sha256: 0efb089b8c3a4efdaa3aabf2ce73ba4b190ea2f8bb9694eb67b38f1c0a1f43af

Contents?: true

Size: 315 Bytes

Versions: 16

Compression:

Stored size: 315 Bytes

Contents

class RenamePublishGroupToDriveGroup < ActiveRecord::Migration
  def self.up
    if Node.column_names.include?('dgroup_id')
      remove_column :nodes, :dgroup_id  # old stuff
    end
    rename_column :nodes, :pgroup_id, :dgroup_id
  end

  def self.down
    rename_column :nodes, :dgroup_id, :pgroup_id
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
zena-0.16.9 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-1.0.0.beta3 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.8 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-1.0.0.beta2 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-1.0.0.beta1 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.7 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.6 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.5 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.4 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.3 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.2 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.1 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.16.0 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.15.2 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.15.1 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
zena-0.15.0 db/migrate/20091013100351_rename_publish_group_to_drive_group.rb