Class: AddMicroServiceClient001Migration
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddMicroServiceClient001Migration
- Defined in:
- lib/generators/micro_service/client/templates/migration_0.0.1.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/generators/micro_service/client/templates/migration_0.0.1.rb', line 14 def self.down drop_table :micro_service_clients end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/micro_service/client/templates/migration_0.0.1.rb', line 2 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. null: false end end |