# Db:migrate fails on discourse-calendar

**URL:** https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229
**Category:** Self-hosting
**Created:** [July 28, 2019, 10:57pm UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229 "2019-07-28T22:57:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alh/32/93024_2.png) [@alh](https://meta.discourse.org/u/alh)
#### Post date: [July 28, 2019, 10:57pm UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/1 "2019-07-28T22:57:12Z")

</div>

I tried to install the Discourse Calendar plugin on my server on the latest version of Discourse ( 2.4.0.beta2). However, db:migrate fails with:

> rake aborted!  
> NoMethodError: undefined method `register\_user\_custom\_field\_type’ for #Plugin::Instance:0x00007f362313a6b8  
> Did you mean? register\_post\_custom\_field\_type  
> register\_group\_custom\_field\_type  
> register\_category\_custom\_field\_type  
> register\_topic\_custom\_field\_type

Does that simply mean the plugin is not compatible yet with the latest version or is my installation somehow messed up?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 1, 2019, 2:30am UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/2 "2019-08-01T02:30:48Z")

</div>

can you confirm this is about our official calendar plugin and not the broken one here: [https://meta.discourse.org/t/discourse-calendar-plugin/58005](https://meta.discourse.org/t/discourse-calendar-plugin/58005)

> [@Discourse Calendar and Events](https://meta.discourse.org/t/discourse-calendar/97376):
>
> discourse2Summary Discourse Calendar and Events adds dynamic and interactive calendar and event features to your Discourse site.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Enabling Calendar and Events The Calendar and Events plugin can be enabled either by the toggle or from its settings, both accessible from your admin/plugins page: Features Somewhat unsurprisingly, Discourse Calend…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 1, 2019, 1:53pm UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/3 "2019-08-01T13:53:52Z")

</div>

`register_user_custom_field_type` is a new method that was added recently in

[https://github.com/discourse/discourse/commit/ae05245b007774fc85c220a54e7478b3b54ac60f](https://github.com/discourse/discourse/commit/ae05245b007774fc85c220a54e7478b3b54ac60f)

You need to upgrade to the very latest version of Discourse for this plugin to work properly.

---

<div class="post-metadata">

### Author: ![alh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alh/32/93024_2.png) [@alh](https://meta.discourse.org/u/alh)
#### Post date: [August 1, 2019, 2:21pm UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/4 "2019-08-01T14:21:01Z")

</div>

So I need master branch instead of 2.4.0.beta2. Thanks for your help!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 31, 2019, 2:21pm UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/5 "2019-08-31T14:21:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
