Sha256: 690e544ee5ad2495ac3c604c18d4a54a5bc985c04f4bfd5ab78decda36c28903

Contents?: true

Size: 576 Bytes

Versions: 15

Compression:

Stored size: 576 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

15 entries across 15 versions & 1 rubygems

Version Path
phcdevworks_accounts-1.2.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-1.1.2 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-1.1.1 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-1.1.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-1.0.1 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-1.0.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.9.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.8.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.7.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.6.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.5.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.4.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.3.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.2.0 db/migrate/20190701120003_add_userinfo_to_users.rb
phcdevworks_accounts-0.1.0 db/migrate/20190701120003_add_userinfo_to_users.rb