Sha256: 4325e8ec91efe9f17e9066791fc84c12acf0a5a9a55f1a071f05abfa29efc84f

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 Bytes

Contents

class AddUserinfoToUsers < ActiveRecord::Migration[7.0]
  def change

    add_column :phcdevworks_accounts_devise_users, :firstname, :string
    add_column :phcdevworks_accounts_devise_users, :lastname, :string
    add_column :phcdevworks_accounts_devise_users, :username, :string
    add_column :phcdevworks_accounts_devise_users, :org_id, :string

    add_index :phcdevworks_accounts_devise_users, :firstname
    add_index :phcdevworks_accounts_devise_users, :lastname
    add_index :phcdevworks_accounts_devise_users, :username, unique: true
    add_index :phcdevworks_accounts_devise_users, :org_id, unique: true

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcdevworks_accounts_devise-1.1.1 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-1.1.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-1.0.1 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-1.0.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-0.1.3.pre.beta db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-0.1.2.pre.beta db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-0.1.1.pre.beta db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts_devise-0.1.0.pre.beta db/migrate/20191012060241_add_userinfo_to_users.rb