Sha256: 114892d42a8324f1bac0d140d87de14bdd71e8c13914b9ddbc937d6a8940636c

Contents?: true

Size: 572 Bytes

Versions: 43

Compression:

Stored size: 572 Bytes

Contents

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

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

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

  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
phcdevworks_accounts-3.2.4 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.2.3 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.2.2 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.2.1 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.2.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.1.2 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.1.1 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.1.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.7 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.5 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.4 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.3 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.2 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.1 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-3.0.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-2.5.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-2.4.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-2.3.0 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-2.2.3 db/migrate/20191012060241_add_userinfo_to_users.rb
phcdevworks_accounts-2.2.1 db/migrate/20191012060241_add_userinfo_to_users.rb