Skip to content

Commit 9816280

Browse files
committed
Removed legacy migration to set Team#active.
1 parent f2dde7d commit 9816280

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#### 0.10.1 (Next)
44

5-
* [#101](https://github.com/slack-ruby/slack-ruby-bot-server/pull/101): Removed support for migrating from a legacy `SLACK_API_TOKEN` - [@dblock](https://github.com/dblock).
5+
* [#101](https://github.com/slack-ruby/slack-ruby-bot-server/pull/101): Removed legacy migrations, including `SLACK_API_TOKEN`, team `name`, `team_id` and `active` - [@dblock](https://github.com/dblock).
66
* [#98](https://github.com/slack-ruby/slack-ruby-bot-server/pull/98): Removed `unicorn` from gem dependencies - [@dblock](https://github.com/dblock).
77
* [#90](https://github.com/slack-ruby/slack-ruby-bot-server/pull/90): Update ActiveRecord sample app to support ENV variables in `postgresql.yml` - [@ashkan18](https://github.com/ashkan18).
88
* Your contribution here.

UPGRADING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Upgrading Slack-Ruby-Bot-Server
33

44
### Upgrading to >= 0.10.1
55

6-
#### Migration from SLACK_API_TOKEN
6+
#### Removed Legacy Migrations
77

8-
The code to automatically migrate from a legacy SLACK_API_TOKEN has been removed.
8+
Several legacy migrations have been removed, including the code to automatically create a team from a legacy `SLACK_API_TOKEN`, setting `Team#active`, `name` and `team_id`.
99

1010
See [#101](https://github.com/slack-ruby/slack-ruby-bot-server/pull/101) for more information.
1111

lib/slack-ruby-bot-server/app.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ class App
33
def prepare!
44
check_database!
55
init_database!
6-
mark_teams_active!
76
purge_inactive_teams!
87
configure_global_aliases!
98
end
@@ -29,10 +28,6 @@ def init_database!
2928
SlackRubyBotServer::DatabaseAdapter.init!
3029
end
3130

32-
def mark_teams_active!
33-
Team.where(active: nil).update_all(active: true)
34-
end
35-
3631
def purge_inactive_teams!
3732
Team.purge!
3833
end

0 commit comments

Comments
 (0)