# Custom Code and Database Changes for Discourse Rails Application

**URL:** <https://meta.discourse.org/t/custom-code-and-database-changes-for-discourse-rails-application/316312>\
**Category:** Development\
**Created:** [July 15, 2024, 11:32am UTC](https://meta.discourse.org/t/custom-code-and-database-changes-for-discourse-rails-application/316312 "2024-07-15T11:32:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 15, 2024, 3:44pm UTC](https://meta.discourse.org/t/custom-code-and-database-changes-for-discourse-rails-application/316312/4 "2024-07-15T15:44:48Z")

</div>

> [@gambhir-makwana](#):
>
> Additional Fields in User Registration

So go ahead and add the user custom fields through the UX?

> [@gambhir-makwana](#):
>
> 1. Update Password Encryption Method

That’s going to be a challenge since you don’t seem familiar with Rails or Discourse plugins. It does appear that there are hooks for alternate encryption methods, but I’m not quite sure just how easy it’lll be to add another and override the default on in a plugin without some pretty good insight into how Rails and Discourse allow for such overrides.

> <https://github.com/discourse/discourse/blob/main/app/models/user.rb#L14-L15>

> [@gambhir-makwana](#):
>
> I needs to create some API’s to call my another application. when create new user then I need to add that user to my discourse application

You and probably do that with webhooks through the UX.

---

_[View the full topic](https://meta.discourse.org/t/custom-code-and-database-changes-for-discourse-rails-application/316312)._
