Commit eceef546 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Add slack service migration.

parent 34875f3a79af
class MoveSlackServiceToWebhook < ActiveRecord::Migration
def change
SlackService.all.each do |slack_service|
if ["token", "subdomain"].all? { |property| property }
token =['token']
subdomain =['subdomain']
webhook = "https://#{subdomain}{token}"['webhook'] = webhook'token')'subdomain')
# Room is configured on the Slack side'room')!
......@@ -11,7 +11,7 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140914173417) do
ActiveRecord::Schema.define(version: 20141006143943) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment