Skip to content

Commit

Permalink
Adds cloud_services table
Browse files Browse the repository at this point in the history
This table will be used for CloudService model.
  • Loading branch information
Petr Blaho committed Apr 19, 2016
1 parent 02f1013 commit c99b526
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions db/migrate/20160415121724_create_cloud_services.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class CreateCloudServices < ActiveRecord::Migration[5.0]
def change
create_table :cloud_services do |t|
t.string :ems_ref
t.string :source
t.string :executable_name
t.string :hostname
t.string :status
t.boolean :scheduling_disabled
t.string :scheduling_disabled_reason
t.bigint :ems_id
t.references :host, :type => :bigint
t.references :system_service, :type => :bigint
t.references :availability_zone, :type => :bigint

t.timestamps
end
add_index :cloud_services, :ems_id
end
end

0 comments on commit c99b526

Please sign in to comment.