From c99b526bf45e9d2e2d21bd584a882c1d5569e9c2 Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Tue, 19 Apr 2016 17:16:11 +0200 Subject: [PATCH] Adds cloud_services table This table will be used for CloudService model. --- .../20160415121724_create_cloud_services.rb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 db/migrate/20160415121724_create_cloud_services.rb diff --git a/db/migrate/20160415121724_create_cloud_services.rb b/db/migrate/20160415121724_create_cloud_services.rb new file mode 100644 index 00000000000..20d4f1881d1 --- /dev/null +++ b/db/migrate/20160415121724_create_cloud_services.rb @@ -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