Sha256: e299c44f599aa567261990279d7d7cdf06784479f2cfcb2d4c4287ba8607978f

Contents?: true

Size: 663 Bytes

Versions: 44

Compression:

Stored size: 663 Bytes

Contents

class RemoveUserFields < ActiveRecord::Migration
  def up
    remove_column :users, :helptips_enabled
    remove_column :users, :page_size
    remove_column :users, :disabled
    remove_column :users, :preferences
    remove_column :users, :remote_id
  end

  def down
    add_column :users, :helptips_enabled, :boolean, :default => true
    add_column :users, :hidden, :boolean, :default => false, :null => false
    add_column :users, :page_size, :integer, :default => 25, :null => false
    add_column :users, :disabled, :boolean, :default => false
    add_column :users, :preferences, :text
    add_column :users, :remote_id, :string, :limit => 255
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.1.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.0.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.0 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.0.rc2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.5.0.rc1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.5 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.4 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.0.2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.0.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.3.2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.0 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.0.rc2 db/migrate/20150603045418_remove_user_fields.rb
katello-3.4.0.rc1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.3.1.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.3.1 db/migrate/20150603045418_remove_user_fields.rb
katello-3.3.0.1 db/migrate/20150603045418_remove_user_fields.rb