Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions config/initializers/app_status.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# アプリケーションの状態を取得できるようにする
Rails.application.config.app_status = LogArchiver::AppStatus.new(
LogArchiver::Version,
Time.now,
LogArchiver::AppStatus.get_commit_id
)
Rails.application.config.to_prepare do
Rails.application.config.app_status = LogArchiver::AppStatus.new(
LogArchiver::Version,
Time.now,
LogArchiver::AppStatus.get_commit_id
)
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class DropForeignKeyFromChannelLastSpeechesToConversationMessagesIfExists < ActiveRecord::Migration[6.1]
def change
if foreign_key_exist?(:channel_last_speeches, :conversation_messages)
if foreign_key_exists?(:channel_last_speeches, :conversation_messages)
remove_foreign_key(:channel_last_speeches, :conversation_messages)
end
end
Expand Down

0 comments on commit dfba811

Please sign in to comment.