|
1 | 1 | Upgrading Slack-Ruby-Bot-Server |
2 | 2 | =============================== |
3 | 3 |
|
| 4 | +### Upgrading to >= 0.10.0 |
| 5 | + |
| 6 | +#### New Team Fields |
| 7 | + |
| 8 | +The following fields have been added to `Team`. |
| 9 | + |
| 10 | +* `bot_user_id`: the bot `user_id` during installation |
| 11 | +* `activated_user_id`: the installing Slack user `user_id` |
| 12 | +* `activated_user_access_token`: the installing Slack user `access_token` |
| 13 | + |
| 14 | +No action is required for Mongoid. |
| 15 | + |
| 16 | +If you're using ActiveRecord, create a migration similar to [sample_apps/sample_app_activerecord/db/migrate/20190323181453_add_activated_fields.rb](sample_apps/sample_app_activerecord/db/migrate/20190323181453_add_activated_fields.rb) to add these fields. |
| 17 | + |
| 18 | +```ruby |
| 19 | +class AddActivatedFields < ActiveRecord::Migration[5.0] |
| 20 | + def change |
| 21 | + add_column :teams, :bot_user_id, :string |
| 22 | + add_column :teams, :activated_user_id, :string |
| 23 | + add_column :teams, :activated_user_access_token, :string |
| 24 | + end |
| 25 | +end |
| 26 | +``` |
| 27 | + |
| 28 | +See [#96](https://github.com/slack-ruby/slack-ruby-bot-server/pull/96) for more information. |
| 29 | + |
4 | 30 | ### Upgrading to >= 0.9.0 |
5 | 31 |
|
6 | | -### Removed Ping Worker |
| 32 | +#### Removed Ping Worker |
7 | 33 |
|
8 | 34 | The ping worker that was added in 0.7.0 has been removed in favor of a lower level implementation in slack-ruby-client. Remove any references to `ping` options. |
9 | 35 |
|
10 | 36 | See [slack-ruby-client#226](https://github.com/slack-ruby/slack-ruby-client/pull/226) and [#93](https://github.com/slack-ruby/slack-ruby-bot-server/pull/93) for more information. |
11 | 37 |
|
12 | 38 | ### Upgrading to >= 0.8.0 |
13 | 39 |
|
14 | | -### Different Asynchronous I/O Library |
| 40 | +#### Different Asynchronous I/O Library |
15 | 41 |
|
16 | 42 | The library now uses [async-websocket](https://github.com/socketry/async-websocket) instead of [celluloid-io](https://github.com/celluloid/celluloid-io). If your application is built on Celluloid you may need to make changes and use `Async::Reactor.run` and the likes. |
17 | 43 |
|
|
0 commit comments