Sha256: c52754b2c75d823b2ef4a22b2814f671aa891d991134cc519de45a4ca679198a

Contents?: true

Size: 886 Bytes

Versions: 119

Compression:

Stored size: 886 Bytes

Contents

class AddLdapAttrsToUser < ActiveRecord::Migration
  def self.up
    add_column :users, :display_name, :string
    add_column :users, :address, :string
    add_column :users, :admin_area, :string
    add_column :users, :department, :string
    add_column :users, :title, :string
    add_column :users, :office, :string
    add_column :users, :chat_id, :string
    add_column :users, :website, :string
    add_column :users, :affiliation, :string
    add_column :users, :telephone, :string
  end

  def self.down
    remove_column :users, :display_name
    remove_column :users, :address
    remove_column :users, :admin_area
    remove_column :users, :department
    remove_column :users, :title
    remove_column :users, :office
    remove_column :users, :chat_id
    remove_column :users, :website
    remove_column :users, :affiliation
    remove_column :users, :telephone
  end
end

Version data entries

119 entries across 112 versions & 5 rubygems

Version Path
sufia-7.0.0.beta1 lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.6.1 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.6.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.5.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.4.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.3.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.2.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.1.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-5.0.0 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-5.0.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.0.0 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-6.0.0 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-6.0.0.rc4 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.0.0.rc4 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-6.0.0.rc3 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.0.0.rc3 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-5.0.0.rc1 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-5.0.0.rc1 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-6.0.0.rc2 sufia-models/lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb
sufia-models-6.0.0.rc2 lib/generators/sufia/models/templates/migrations/add_ldap_attrs_to_user.rb