Sha256: 21dbf998437c5484ca1b012bf31603e85bf0719105a9f475b6696d2474460fb6

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

class AddMicroServiceClient001Migration < ActiveRecord::Migration
	def self.up
		create_table :micro_service_clients do |t|
			t.string :secret # Secret to be used
			t.string :install_url  # POST here when install successful
			t.string :uninstall_url # POST here when uninstall successful
			t.integer :attempt, default: 0
			t.boolean :uninstalled, default: 0

			t.timestamps null: false
		end
	end

	def self.down
		drop_table :micro_service_clients
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
micro_service-client-0.0.1 lib/generators/micro_service/client/templates/migration_0.0.1.rb