Skip to content

Commit 535e505

Browse files
committed
Fixed problem with not recognizing table
1 parent db9a303 commit 535e505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/slack-ruby-bot-server/config/database_adapters/activerecord.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.check!
1111
end
1212

1313
def self.init!
14-
return if ActiveRecord::Base.connection.tables.include?(SlackRubyBotServer::Config.teams_table)
14+
return if ActiveRecord::Base.connection.tables.include?(SlackRubyBotServer::Config.teams_table.to_s)
1515
ActiveRecord::Base.connection.create_table SlackRubyBotServer::Config.teams_table do |t|
1616
t.string :team_id
1717
t.string :name

0 commit comments

Comments
 (0)