db/migrate/001_setup.rb in mkit-0.4.1 vs db/migrate/001_setup.rb in mkit-0.4.2

- old
+ new

@@ -1,7 +1,8 @@ -class Setup < ActiveRecord::Migration[5.1] +# frozen_string_literal: true +class Setup < ActiveRecord::Migration[5.1] def up create_table :services do |t| t.string :name t.string :image t.string :qdm @@ -14,11 +15,11 @@ t.string :status t.timestamp :created_at, default: DateTime.now t.timestamp :updated_at end - add_index "services", ["name"], :name => "services_name_id" + add_index 'services', ['name'], name: 'services_name_id' create_table :service_configs do |t| t.string :service_id t.string :key t.string :value @@ -80,14 +81,14 @@ t.string :ip t.string :ipv6 end # mkit configs - # e.g. + # e.g. # default network pool # rabbitmq address - # haproxy + # haproxy # config.d path # reload command - pq quero usar o daemontools # stop # start # status @@ -100,6 +101,5 @@ def down drop_table :services end end -