diff --git a/db/migrate/20160419122430_devise_create_users.rb b/db/migrate/20160419122430_devise_create_users.rb index 9200e8b1..1fefeee7 100644 --- a/db/migrate/20160419122430_devise_create_users.rb +++ b/db/migrate/20160419122430_devise_create_users.rb @@ -1,4 +1,4 @@ -class DeviseCreateUsers < ActiveRecord::Migration +class DeviseCreateUsers < ActiveRecord::Migration[5.0] def change create_table :users do |t| ## Database authenticatable diff --git a/db/migrate/20160419132647_add_provider_to_users.rb b/db/migrate/20160419132647_add_provider_to_users.rb index 5d9f44f5..c0bfe7cd 100644 --- a/db/migrate/20160419132647_add_provider_to_users.rb +++ b/db/migrate/20160419132647_add_provider_to_users.rb @@ -1,4 +1,4 @@ -class AddProviderToUsers < ActiveRecord::Migration +class AddProviderToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :provider, :string add_column :users, :uid, :string diff --git a/db/migrate/20160419144739_add_name_to_users.rb b/db/migrate/20160419144739_add_name_to_users.rb index bac750eb..f3e327b8 100644 --- a/db/migrate/20160419144739_add_name_to_users.rb +++ b/db/migrate/20160419144739_add_name_to_users.rb @@ -1,4 +1,4 @@ -class AddNameToUsers < ActiveRecord::Migration +class AddNameToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :name, :string end diff --git a/db/migrate/20160427123146_add_auth_key_to_user.rb b/db/migrate/20160427123146_add_auth_key_to_user.rb index 410c0cce..0075cab6 100644 --- a/db/migrate/20160427123146_add_auth_key_to_user.rb +++ b/db/migrate/20160427123146_add_auth_key_to_user.rb @@ -1,4 +1,4 @@ -class AddAuthKeyToUser < ActiveRecord::Migration +class AddAuthKeyToUser < ActiveRecord::Migration[5.0] def change add_column :users, :auth_key, :string end diff --git a/db/migrate/20160427123233_add_provisioning_uri_to_user.rb b/db/migrate/20160427123233_add_provisioning_uri_to_user.rb index cfee2da4..2da21080 100644 --- a/db/migrate/20160427123233_add_provisioning_uri_to_user.rb +++ b/db/migrate/20160427123233_add_provisioning_uri_to_user.rb @@ -1,4 +1,4 @@ -class AddProvisioningUriToUser < ActiveRecord::Migration +class AddProvisioningUriToUser < ActiveRecord::Migration[5.0] def change add_column :users, :provisioning_uri, :string end diff --git a/db/migrate/20160519042340_add_active_to_users.rb b/db/migrate/20160519042340_add_active_to_users.rb index 9193194d..60962f71 100644 --- a/db/migrate/20160519042340_add_active_to_users.rb +++ b/db/migrate/20160519042340_add_active_to_users.rb @@ -1,4 +1,4 @@ -class AddActiveToUsers < ActiveRecord::Migration +class AddActiveToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :active, :boolean end diff --git a/db/migrate/20160519064340_add_default_value_to_users.rb b/db/migrate/20160519064340_add_default_value_to_users.rb index a403bd10..1bfd358b 100644 --- a/db/migrate/20160519064340_add_default_value_to_users.rb +++ b/db/migrate/20160519064340_add_default_value_to_users.rb @@ -1,4 +1,4 @@ -class AddDefaultValueToUsers < ActiveRecord::Migration +class AddDefaultValueToUsers < ActiveRecord::Migration[5.0] def change change_column :users, :active, :boolean, default: true end diff --git a/db/migrate/20160615044834_create_hosts.rb b/db/migrate/20160615044834_create_hosts.rb index 04a5ee7b..e577cb82 100644 --- a/db/migrate/20160615044834_create_hosts.rb +++ b/db/migrate/20160615044834_create_hosts.rb @@ -1,4 +1,4 @@ -class CreateHosts < ActiveRecord::Migration +class CreateHosts < ActiveRecord::Migration[5.0] def change create_table :hosts do |t| t.string :host_pattern diff --git a/db/migrate/20160615045052_add_admin_to_user.rb b/db/migrate/20160615045052_add_admin_to_user.rb index 19b22334..6a3b6ef7 100644 --- a/db/migrate/20160615045052_add_admin_to_user.rb +++ b/db/migrate/20160615045052_add_admin_to_user.rb @@ -1,4 +1,4 @@ -class AddAdminToUser < ActiveRecord::Migration +class AddAdminToUser < ActiveRecord::Migration[5.0] def change add_column :users, :admin, :boolean, default: false end diff --git a/db/migrate/20160615112805_add_user_to_host.rb b/db/migrate/20160615112805_add_user_to_host.rb index 01a97aee..74e64ad2 100644 --- a/db/migrate/20160615112805_add_user_to_host.rb +++ b/db/migrate/20160615112805_add_user_to_host.rb @@ -1,4 +1,4 @@ -class AddUserToHost < ActiveRecord::Migration +class AddUserToHost < ActiveRecord::Migration[5.0] def change add_reference :hosts, :user, index: true, foreign_key: true end diff --git a/db/migrate/20160628140022_add_deleted_at_to_host.rb b/db/migrate/20160628140022_add_deleted_at_to_host.rb index 28842e14..4d4169b3 100644 --- a/db/migrate/20160628140022_add_deleted_at_to_host.rb +++ b/db/migrate/20160628140022_add_deleted_at_to_host.rb @@ -1,4 +1,4 @@ -class AddDeletedAtToHost < ActiveRecord::Migration +class AddDeletedAtToHost < ActiveRecord::Migration[5.0] def change add_column :hosts, :deleted_at, :datetime add_index :hosts, :deleted_at diff --git a/db/migrate/20160628140440_add_deleted_by_to_host.rb b/db/migrate/20160628140440_add_deleted_by_to_host.rb index fc403462..343539e6 100644 --- a/db/migrate/20160628140440_add_deleted_by_to_host.rb +++ b/db/migrate/20160628140440_add_deleted_by_to_host.rb @@ -1,4 +1,4 @@ -class AddDeletedByToHost < ActiveRecord::Migration +class AddDeletedByToHost < ActiveRecord::Migration[5.0] def change add_column :hosts, :deleted_by, :integer add_index :hosts, :deleted_by diff --git a/db/migrate/20160629043358_add_homedir_to_user.rb b/db/migrate/20160629043358_add_homedir_to_user.rb index 35a0ecca..55e71a76 100644 --- a/db/migrate/20160629043358_add_homedir_to_user.rb +++ b/db/migrate/20160629043358_add_homedir_to_user.rb @@ -1,4 +1,4 @@ -class AddHomedirToUser < ActiveRecord::Migration +class AddHomedirToUser < ActiveRecord::Migration[5.0] def change add_column :users, :home_dir, :string end diff --git a/db/migrate/20160629043415_add_shell_to_user.rb b/db/migrate/20160629043415_add_shell_to_user.rb index bb747bcf..5707bc6a 100644 --- a/db/migrate/20160629043415_add_shell_to_user.rb +++ b/db/migrate/20160629043415_add_shell_to_user.rb @@ -1,4 +1,4 @@ -class AddShellToUser < ActiveRecord::Migration +class AddShellToUser < ActiveRecord::Migration[5.0] def change add_column :users, :shell, :string end diff --git a/db/migrate/20160629075435_create_groups.rb b/db/migrate/20160629075435_create_groups.rb index 4bca0357..86055f08 100644 --- a/db/migrate/20160629075435_create_groups.rb +++ b/db/migrate/20160629075435_create_groups.rb @@ -1,4 +1,4 @@ -class CreateGroups < ActiveRecord::Migration +class CreateGroups < ActiveRecord::Migration[5.0] def change create_table :groups do |t| t.string :name diff --git a/db/migrate/20160701090045_create_group_associations.rb b/db/migrate/20160701090045_create_group_associations.rb index 7393fa40..8dde6589 100644 --- a/db/migrate/20160701090045_create_group_associations.rb +++ b/db/migrate/20160701090045_create_group_associations.rb @@ -1,4 +1,4 @@ -class CreateGroupAssociations < ActiveRecord::Migration +class CreateGroupAssociations < ActiveRecord::Migration[5.0] def change create_table :group_associations do |t| t.references :user diff --git a/db/migrate/20160701112600_add_deleted_properties_to_group.rb b/db/migrate/20160701112600_add_deleted_properties_to_group.rb index ff0e3542..3981a2b9 100644 --- a/db/migrate/20160701112600_add_deleted_properties_to_group.rb +++ b/db/migrate/20160701112600_add_deleted_properties_to_group.rb @@ -1,4 +1,4 @@ -class AddDeletedPropertiesToGroup < ActiveRecord::Migration +class AddDeletedPropertiesToGroup < ActiveRecord::Migration[5.0] def change add_column :groups, :deleted_by, :integer add_column :groups, :deleted_at, :datetime diff --git a/db/migrate/20160707115313_create_access_tokens.rb b/db/migrate/20160707115313_create_access_tokens.rb index ccad4e5a..fe3ed5af 100644 --- a/db/migrate/20160707115313_create_access_tokens.rb +++ b/db/migrate/20160707115313_create_access_tokens.rb @@ -1,4 +1,4 @@ -class CreateAccessTokens < ActiveRecord::Migration +class CreateAccessTokens < ActiveRecord::Migration[5.0] def change create_table :access_tokens do |t| t.string :token diff --git a/db/migrate/20160714115228_add_public_key_to_user.rb b/db/migrate/20160714115228_add_public_key_to_user.rb index 4500bffd..5df05f5c 100644 --- a/db/migrate/20160714115228_add_public_key_to_user.rb +++ b/db/migrate/20160714115228_add_public_key_to_user.rb @@ -1,4 +1,4 @@ -class AddPublicKeyToUser < ActiveRecord::Migration +class AddPublicKeyToUser < ActiveRecord::Migration[5.0] def change add_column :users, :public_key, :text end diff --git a/db/migrate/20160908081651_create_host_machines.rb b/db/migrate/20160908081651_create_host_machines.rb index 358dc7c8..c39c7e09 100644 --- a/db/migrate/20160908081651_create_host_machines.rb +++ b/db/migrate/20160908081651_create_host_machines.rb @@ -1,4 +1,4 @@ -class CreateHostMachines < ActiveRecord::Migration +class CreateHostMachines < ActiveRecord::Migration[5.0] def change create_table :host_machines do |t| t.string :name diff --git a/db/migrate/20161003145832_create_host_access_groups.rb b/db/migrate/20161003145832_create_host_access_groups.rb index 6036d8d4..1f35e7ef 100644 --- a/db/migrate/20161003145832_create_host_access_groups.rb +++ b/db/migrate/20161003145832_create_host_access_groups.rb @@ -1,4 +1,4 @@ -class CreateHostAccessGroups < ActiveRecord::Migration +class CreateHostAccessGroups < ActiveRecord::Migration[5.0] def change create_table :host_access_groups do |t| t.references :host_machine diff --git a/db/migrate/20170803140620_add_user_login_id_to_user.rb b/db/migrate/20170803140620_add_user_login_id_to_user.rb index 96e5bf38..03f6a378 100644 --- a/db/migrate/20170803140620_add_user_login_id_to_user.rb +++ b/db/migrate/20170803140620_add_user_login_id_to_user.rb @@ -1,4 +1,4 @@ -class AddUserLoginIdToUser < ActiveRecord::Migration +class AddUserLoginIdToUser < ActiveRecord::Migration[5.0] def change add_column :users, :user_login_id, :string add_index :users, :user_login_id diff --git a/db/migrate/20171013115441_create_versions.rb b/db/migrate/20171013115441_create_versions.rb index 3d9803ad..cc682a28 100644 --- a/db/migrate/20171013115441_create_versions.rb +++ b/db/migrate/20171013115441_create_versions.rb @@ -1,6 +1,6 @@ # This migration creates the `versions` table, the only schema PT requires. # All other migrations PT provides are optional. -class CreateVersions < ActiveRecord::Migration +class CreateVersions < ActiveRecord::Migration[5.0] # The largest text column available in all supported RDBMS is # 1024^3 - 1 bytes, roughly one gibibyte. We specify a size diff --git a/db/migrate/20171016064705_remove_index_group_name.rb b/db/migrate/20171016064705_remove_index_group_name.rb index cf1796b4..c1b15d81 100644 --- a/db/migrate/20171016064705_remove_index_group_name.rb +++ b/db/migrate/20171016064705_remove_index_group_name.rb @@ -1,4 +1,4 @@ -class RemoveIndexGroupName < ActiveRecord::Migration +class RemoveIndexGroupName < ActiveRecord::Migration[5.0] def change remove_index :groups, [:name] end diff --git a/db/migrate/20171016071526_add_unique_index_on_groups_name.rb b/db/migrate/20171016071526_add_unique_index_on_groups_name.rb index 95c9a540..3fa579a4 100644 --- a/db/migrate/20171016071526_add_unique_index_on_groups_name.rb +++ b/db/migrate/20171016071526_add_unique_index_on_groups_name.rb @@ -1,4 +1,4 @@ -class AddUniqueIndexOnGroupsName < ActiveRecord::Migration +class AddUniqueIndexOnGroupsName < ActiveRecord::Migration[5.0] def change add_index :groups, :name, unique: true end diff --git a/db/migrate/20171031060034_create_group_admin.rb b/db/migrate/20171031060034_create_group_admin.rb index 8ebe28ea..e8b316b2 100644 --- a/db/migrate/20171031060034_create_group_admin.rb +++ b/db/migrate/20171031060034_create_group_admin.rb @@ -1,4 +1,4 @@ -class CreateGroupAdmin < ActiveRecord::Migration +class CreateGroupAdmin < ActiveRecord::Migration[5.0] def change create_table :group_admins do |t| t.integer :group_id diff --git a/db/migrate/20171031060217_add_foreign_key_ref_on_group_admin.rb b/db/migrate/20171031060217_add_foreign_key_ref_on_group_admin.rb index 921946b8..ebcfb266 100644 --- a/db/migrate/20171031060217_add_foreign_key_ref_on_group_admin.rb +++ b/db/migrate/20171031060217_add_foreign_key_ref_on_group_admin.rb @@ -1,4 +1,4 @@ -class AddForeignKeyRefOnGroupAdmin < ActiveRecord::Migration +class AddForeignKeyRefOnGroupAdmin < ActiveRecord::Migration[5.0] def change add_foreign_key :group_admins, :groups add_foreign_key :group_admins, :users diff --git a/db/migrate/20171031100758_create_vpns.rb b/db/migrate/20171031100758_create_vpns.rb index 4e7c95cc..617c997e 100644 --- a/db/migrate/20171031100758_create_vpns.rb +++ b/db/migrate/20171031100758_create_vpns.rb @@ -1,4 +1,4 @@ -class CreateVpns < ActiveRecord::Migration +class CreateVpns < ActiveRecord::Migration[5.0] def change create_table :vpns do |t| t.string :name diff --git a/db/migrate/20171031101026_create_vpn_group_association.rb b/db/migrate/20171031101026_create_vpn_group_association.rb index 377f18ad..d4acf33b 100644 --- a/db/migrate/20171031101026_create_vpn_group_association.rb +++ b/db/migrate/20171031101026_create_vpn_group_association.rb @@ -1,4 +1,4 @@ -class CreateVpnGroupAssociation < ActiveRecord::Migration +class CreateVpnGroupAssociation < ActiveRecord::Migration[5.0] def change create_table :vpn_group_associations do |t| t.integer :group_id diff --git a/db/migrate/20171031103518_add_foreign_key_ref_on_vpn_group_association.rb b/db/migrate/20171031103518_add_foreign_key_ref_on_vpn_group_association.rb index 895ac4d7..990708e4 100644 --- a/db/migrate/20171031103518_add_foreign_key_ref_on_vpn_group_association.rb +++ b/db/migrate/20171031103518_add_foreign_key_ref_on_vpn_group_association.rb @@ -1,4 +1,4 @@ -class AddForeignKeyRefOnVpnGroupAssociation < ActiveRecord::Migration +class AddForeignKeyRefOnVpnGroupAssociation < ActiveRecord::Migration[5.0] def change add_foreign_key :vpn_group_associations, :groups add_foreign_key :vpn_group_associations, :vpns diff --git a/db/migrate/20171031113123_create_vpn_group_user_association.rb b/db/migrate/20171031113123_create_vpn_group_user_association.rb index a34c7c97..8872c5e6 100644 --- a/db/migrate/20171031113123_create_vpn_group_user_association.rb +++ b/db/migrate/20171031113123_create_vpn_group_user_association.rb @@ -1,4 +1,4 @@ -class CreateVpnGroupUserAssociation < ActiveRecord::Migration +class CreateVpnGroupUserAssociation < ActiveRecord::Migration[5.0] def change create_table :vpn_group_user_associations do |t| t.integer :user_id diff --git a/db/migrate/20171031121702_add_foreign_key_ref_on_vpn_group_user_association.rb b/db/migrate/20171031121702_add_foreign_key_ref_on_vpn_group_user_association.rb index e405274e..c78105ff 100644 --- a/db/migrate/20171031121702_add_foreign_key_ref_on_vpn_group_user_association.rb +++ b/db/migrate/20171031121702_add_foreign_key_ref_on_vpn_group_user_association.rb @@ -1,4 +1,4 @@ -class AddForeignKeyRefOnVpnGroupUserAssociation < ActiveRecord::Migration +class AddForeignKeyRefOnVpnGroupUserAssociation < ActiveRecord::Migration[5.0] def change add_foreign_key :vpn_group_user_associations, :users add_foreign_key :vpn_group_user_associations, :groups diff --git a/db/migrate/20171102071909_add_ip_address_to_vpns.rb b/db/migrate/20171102071909_add_ip_address_to_vpns.rb index 0340a5ef..d5e1ebcc 100644 --- a/db/migrate/20171102071909_add_ip_address_to_vpns.rb +++ b/db/migrate/20171102071909_add_ip_address_to_vpns.rb @@ -1,4 +1,4 @@ -class AddIpAddressToVpns < ActiveRecord::Migration +class AddIpAddressToVpns < ActiveRecord::Migration[5.0] def change add_column :vpns, :ip_address, :string end diff --git a/db/migrate/20171107114249_remove_url_from_vpns.rb b/db/migrate/20171107114249_remove_url_from_vpns.rb index 6ef1721a..14911d25 100644 --- a/db/migrate/20171107114249_remove_url_from_vpns.rb +++ b/db/migrate/20171107114249_remove_url_from_vpns.rb @@ -1,4 +1,4 @@ -class RemoveUrlFromVpns < ActiveRecord::Migration +class RemoveUrlFromVpns < ActiveRecord::Migration[5.0] def change remove_column :vpns, :url, :string end diff --git a/db/migrate/20171108130234_add_user_id_to_access_token.rb b/db/migrate/20171108130234_add_user_id_to_access_token.rb index cc933c63..4c5e441c 100644 --- a/db/migrate/20171108130234_add_user_id_to_access_token.rb +++ b/db/migrate/20171108130234_add_user_id_to_access_token.rb @@ -1,4 +1,4 @@ -class AddUserIdToAccessToken < ActiveRecord::Migration +class AddUserIdToAccessToken < ActiveRecord::Migration[5.0] def change add_column :access_tokens, :user_id, :integer end diff --git a/db/migrate/20171108130353_add_foreign_key_ref_on_access_tokens.rb b/db/migrate/20171108130353_add_foreign_key_ref_on_access_tokens.rb index c1e5b98d..8272acba 100644 --- a/db/migrate/20171108130353_add_foreign_key_ref_on_access_tokens.rb +++ b/db/migrate/20171108130353_add_foreign_key_ref_on_access_tokens.rb @@ -1,4 +1,4 @@ -class AddForeignKeyRefOnAccessTokens < ActiveRecord::Migration +class AddForeignKeyRefOnAccessTokens < ActiveRecord::Migration[5.0] def change add_foreign_key "access_tokens", "users" end diff --git a/db/migrate/20171124090240_add_uuid_to_vpns.rb b/db/migrate/20171124090240_add_uuid_to_vpns.rb index 89fecf4f..63db7ad9 100644 --- a/db/migrate/20171124090240_add_uuid_to_vpns.rb +++ b/db/migrate/20171124090240_add_uuid_to_vpns.rb @@ -1,4 +1,4 @@ -class AddUuidToVpns < ActiveRecord::Migration +class AddUuidToVpns < ActiveRecord::Migration[5.0] def change add_column :vpns, :uuid, :string end diff --git a/db/migrate/20171124114427_create_vpn_domain_name_servers.rb b/db/migrate/20171124114427_create_vpn_domain_name_servers.rb index 2b4d70dc..e1639467 100644 --- a/db/migrate/20171124114427_create_vpn_domain_name_servers.rb +++ b/db/migrate/20171124114427_create_vpn_domain_name_servers.rb @@ -1,4 +1,4 @@ -class CreateVpnDomainNameServers < ActiveRecord::Migration +class CreateVpnDomainNameServers < ActiveRecord::Migration[5.0] def change create_table :vpn_domain_name_servers do |t| t.integer :vpn_id diff --git a/db/migrate/20171124114830_create_vpn_search_domains.rb b/db/migrate/20171124114830_create_vpn_search_domains.rb index e69e4d03..dcc2fb2f 100644 --- a/db/migrate/20171124114830_create_vpn_search_domains.rb +++ b/db/migrate/20171124114830_create_vpn_search_domains.rb @@ -1,4 +1,4 @@ -class CreateVpnSearchDomains < ActiveRecord::Migration +class CreateVpnSearchDomains < ActiveRecord::Migration[5.0] def change create_table :vpn_search_domains do |t| t.integer :vpn_id diff --git a/db/migrate/20171124115925_create_vpn_supplemental_match_domains.rb b/db/migrate/20171124115925_create_vpn_supplemental_match_domains.rb index 190382c5..7aa370c9 100644 --- a/db/migrate/20171124115925_create_vpn_supplemental_match_domains.rb +++ b/db/migrate/20171124115925_create_vpn_supplemental_match_domains.rb @@ -1,4 +1,4 @@ -class CreateVpnSupplementalMatchDomains < ActiveRecord::Migration +class CreateVpnSupplementalMatchDomains < ActiveRecord::Migration[5.0] def change create_table :vpn_supplemental_match_domains do |t| t.integer :vpn_id diff --git a/db/migrate/20180104081814_add_product_name_to_users.rb b/db/migrate/20180104081814_add_product_name_to_users.rb index 3d725b28..d62f5134 100644 --- a/db/migrate/20180104081814_add_product_name_to_users.rb +++ b/db/migrate/20180104081814_add_product_name_to_users.rb @@ -1,4 +1,4 @@ -class AddProductNameToUsers < ActiveRecord::Migration +class AddProductNameToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :product_name, :string end diff --git a/db/migrate/20180202102206_create_saml_service_providers.rb b/db/migrate/20180202102206_create_saml_service_providers.rb index 5692b6bd..6584c130 100644 --- a/db/migrate/20180202102206_create_saml_service_providers.rb +++ b/db/migrate/20180202102206_create_saml_service_providers.rb @@ -1,4 +1,4 @@ -class CreateSamlServiceProviders < ActiveRecord::Migration +class CreateSamlServiceProviders < ActiveRecord::Migration[5.0] def change create_table :saml_service_providers do |t| t.string :name, null: false, unique: true diff --git a/db/migrate/20180214050204_add_api_key_to_host_machines.rb b/db/migrate/20180214050204_add_api_key_to_host_machines.rb index 2ab1e285..e633c5b9 100755 --- a/db/migrate/20180214050204_add_api_key_to_host_machines.rb +++ b/db/migrate/20180214050204_add_api_key_to_host_machines.rb @@ -1,4 +1,4 @@ -class AddApiKeyToHostMachines < ActiveRecord::Migration +class AddApiKeyToHostMachines < ActiveRecord::Migration[5.0] def change add_column :host_machines, :api_key, :string end diff --git a/db/migrate/20180214052451_create_ip_addresses.rb b/db/migrate/20180214052451_create_ip_addresses.rb index cd75c1d1..cd14ec71 100755 --- a/db/migrate/20180214052451_create_ip_addresses.rb +++ b/db/migrate/20180214052451_create_ip_addresses.rb @@ -1,4 +1,4 @@ -class CreateIpAddresses < ActiveRecord::Migration +class CreateIpAddresses < ActiveRecord::Migration[5.0] def change create_table :ip_addresses do |t| t.string :address diff --git a/db/migrate/20180214052644_add_host_machine_to_ip_address.rb b/db/migrate/20180214052644_add_host_machine_to_ip_address.rb index ea4aa5d1..f0c2842e 100755 --- a/db/migrate/20180214052644_add_host_machine_to_ip_address.rb +++ b/db/migrate/20180214052644_add_host_machine_to_ip_address.rb @@ -1,4 +1,4 @@ -class AddHostMachineToIpAddress < ActiveRecord::Migration +class AddHostMachineToIpAddress < ActiveRecord::Migration[5.0] def change add_reference :ip_addresses, :host_machine, index: true, foreign_key: true end diff --git a/db/migrate/20180219150818_add_description_to_group.rb b/db/migrate/20180219150818_add_description_to_group.rb index 5d84a5d5..9d4fb49c 100755 --- a/db/migrate/20180219150818_add_description_to_group.rb +++ b/db/migrate/20180219150818_add_description_to_group.rb @@ -1,4 +1,4 @@ -class AddDescriptionToGroup < ActiveRecord::Migration +class AddDescriptionToGroup < ActiveRecord::Migration[5.0] def change add_column :groups, :description, :string end diff --git a/db/migrate/20180222135930_add_access_key_to_host_machine.rb b/db/migrate/20180222135930_add_access_key_to_host_machine.rb index 13f30e3c..67407191 100755 --- a/db/migrate/20180222135930_add_access_key_to_host_machine.rb +++ b/db/migrate/20180222135930_add_access_key_to_host_machine.rb @@ -1,4 +1,4 @@ -class AddAccessKeyToHostMachine < ActiveRecord::Migration +class AddAccessKeyToHostMachine < ActiveRecord::Migration[5.0] def change add_column :host_machines, :access_key, :string end diff --git a/db/migrate/20180222140000_add_access_key_to_user.rb b/db/migrate/20180222140000_add_access_key_to_user.rb index 37a16812..3c55fee5 100755 --- a/db/migrate/20180222140000_add_access_key_to_user.rb +++ b/db/migrate/20180222140000_add_access_key_to_user.rb @@ -1,4 +1,4 @@ -class AddAccessKeyToUser < ActiveRecord::Migration +class AddAccessKeyToUser < ActiveRecord::Migration[5.0] def change add_column :users, :access_key, :string end diff --git a/db/migrate/20180227051732_create_api_resources.rb b/db/migrate/20180227051732_create_api_resources.rb index b5605b8f..22c8ccb9 100755 --- a/db/migrate/20180227051732_create_api_resources.rb +++ b/db/migrate/20180227051732_create_api_resources.rb @@ -1,4 +1,4 @@ -class CreateApiResources < ActiveRecord::Migration +class CreateApiResources < ActiveRecord::Migration[5.0] def change create_table :api_resources do |t| t.string :name diff --git a/db/migrate/20180301010021_add_user_to_api_resources.rb b/db/migrate/20180301010021_add_user_to_api_resources.rb index 2456b294..53b06542 100644 --- a/db/migrate/20180301010021_add_user_to_api_resources.rb +++ b/db/migrate/20180301010021_add_user_to_api_resources.rb @@ -1,4 +1,4 @@ -class AddUserToApiResources < ActiveRecord::Migration +class AddUserToApiResources < ActiveRecord::Migration[5.0] def change add_reference :api_resources, :user, index: true, foreign_key: true end diff --git a/db/migrate/20180301010035_add_group_to_api_resources.rb b/db/migrate/20180301010035_add_group_to_api_resources.rb index aecb8798..1a6fce0b 100644 --- a/db/migrate/20180301010035_add_group_to_api_resources.rb +++ b/db/migrate/20180301010035_add_group_to_api_resources.rb @@ -1,4 +1,4 @@ -class AddGroupToApiResources < ActiveRecord::Migration +class AddGroupToApiResources < ActiveRecord::Migration[5.0] def change add_reference :api_resources, :group, index: true, foreign_key: true end diff --git a/db/migrate/20180306231200_add_deactivated_at_to_users.rb b/db/migrate/20180306231200_add_deactivated_at_to_users.rb index 391dddc8..89a2f00c 100644 --- a/db/migrate/20180306231200_add_deactivated_at_to_users.rb +++ b/db/migrate/20180306231200_add_deactivated_at_to_users.rb @@ -1,4 +1,4 @@ -class AddDeactivatedAtToUsers < ActiveRecord::Migration +class AddDeactivatedAtToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :deactivated_at, :datetime end diff --git a/db/migrate/20180311082600_rename_access_key_in_api_resources.rb b/db/migrate/20180311082600_rename_access_key_in_api_resources.rb index 456b011a..1e445a70 100644 --- a/db/migrate/20180311082600_rename_access_key_in_api_resources.rb +++ b/db/migrate/20180311082600_rename_access_key_in_api_resources.rb @@ -1,4 +1,4 @@ -class RenameAccessKeyInApiResources < ActiveRecord::Migration +class RenameAccessKeyInApiResources < ActiveRecord::Migration[5.0] def change rename_column :api_resources, :access_key, :hashed_access_key end diff --git a/db/migrate/20180311161200_rename_token_in_access_tokens.rb b/db/migrate/20180311161200_rename_token_in_access_tokens.rb index df4e5cc4..56d8442f 100644 --- a/db/migrate/20180311161200_rename_token_in_access_tokens.rb +++ b/db/migrate/20180311161200_rename_token_in_access_tokens.rb @@ -1,4 +1,4 @@ -class RenameTokenInAccessTokens < ActiveRecord::Migration +class RenameTokenInAccessTokens < ActiveRecord::Migration[5.0] def change rename_column :access_tokens, :token, :hashed_token end diff --git a/db/migrate/20180318083000_create_indexes_to_speedup_nss_controller.rb b/db/migrate/20180318083000_create_indexes_to_speedup_nss_controller.rb index b6a5f18d..2dd9b2ae 100644 --- a/db/migrate/20180318083000_create_indexes_to_speedup_nss_controller.rb +++ b/db/migrate/20180318083000_create_indexes_to_speedup_nss_controller.rb @@ -1,4 +1,4 @@ -class CreateIndexesToSpeedupNssController < ActiveRecord::Migration +class CreateIndexesToSpeedupNssController < ActiveRecord::Migration[5.0] def change add_index :users, :uid add_index :access_tokens, :hashed_token diff --git a/db/migrate/20180613074108_create_organisations.rb b/db/migrate/20180613074108_create_organisations.rb index 41adef64..dd6a3b97 100644 --- a/db/migrate/20180613074108_create_organisations.rb +++ b/db/migrate/20180613074108_create_organisations.rb @@ -1,4 +1,4 @@ -class CreateOrganisations < ActiveRecord::Migration +class CreateOrganisations < ActiveRecord::Migration[5.0] def change create_table :organisations do |t| t.string :name diff --git a/db/migrate/20180613165050_drop_saml_service_providers.rb b/db/migrate/20180613165050_drop_saml_service_providers.rb index b432f844..c869618c 100644 --- a/db/migrate/20180613165050_drop_saml_service_providers.rb +++ b/db/migrate/20180613165050_drop_saml_service_providers.rb @@ -1,4 +1,4 @@ -class DropSamlServiceProviders < ActiveRecord::Migration +class DropSamlServiceProviders < ActiveRecord::Migration[5.0] def change drop_table :saml_service_providers end diff --git a/db/migrate/20180723175600_update_organisations_for_saml.rb b/db/migrate/20180723175600_update_organisations_for_saml.rb index ec012449..75d5db39 100644 --- a/db/migrate/20180723175600_update_organisations_for_saml.rb +++ b/db/migrate/20180723175600_update_organisations_for_saml.rb @@ -1,4 +1,4 @@ -class UpdateOrganisationsForSaml < ActiveRecord::Migration +class UpdateOrganisationsForSaml < ActiveRecord::Migration[5.0] def change rename_column :organisations, :url, :website rename_column :organisations, :email_domain, :domain diff --git a/db/migrate/20181002023107_add_default_admins_to_host_machines.rb b/db/migrate/20181002023107_add_default_admins_to_host_machines.rb index 30b8d364..2ac6c51c 100644 --- a/db/migrate/20181002023107_add_default_admins_to_host_machines.rb +++ b/db/migrate/20181002023107_add_default_admins_to_host_machines.rb @@ -1,4 +1,4 @@ -class AddDefaultAdminsToHostMachines < ActiveRecord::Migration +class AddDefaultAdminsToHostMachines < ActiveRecord::Migration[5.0] def change add_column :host_machines, :default_admins, :boolean, default: true end diff --git a/db/schema.rb b/db/schema.rb index 0f43568a..8d6dda2d 100755 --- a/db/schema.rb +++ b/db/schema.rb @@ -12,219 +12,237 @@ ActiveRecord::Schema.define(version: 20181016093315) do - create_table "access_tokens", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "hashed_token" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "user_id" - t.index ["hashed_token"], name: "index_access_tokens_on_hashed_token", using: :btree - t.index ["user_id"], name: "fk_rails_96fc070778", using: :btree - end - - create_table "api_resources", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "name" - t.string "description" - t.string "hashed_access_key" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "user_id" - t.integer "group_id" - t.index ["group_id"], name: "index_api_resources_on_group_id", using: :btree - t.index ["user_id"], name: "index_api_resources_on_user_id", using: :btree - end - - create_table "group_admins", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "group_id" - t.integer "user_id" - t.datetime "created_at" - t.datetime "updated_at" - t.index ["group_id"], name: "fk_rails_1a1d29d2d3", using: :btree - t.index ["user_id"], name: "fk_rails_0ac5a6fa32", using: :btree + create_table "access_tokens", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "hashed_token" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id" + t.index ["hashed_token"], name: "index_access_tokens_on_hashed_token" + t.index ["user_id"], name: "fk_rails_96fc070778" + end + + create_table "api_resources", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "name" + t.string "description" + t.string "hashed_access_key" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id" + t.integer "group_id" + t.index ["group_id"], name: "index_api_resources_on_group_id" + t.index ["user_id"], name: "index_api_resources_on_user_id" end - create_table "group_associations", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "user_id" - t.integer "group_id" + create_table "group_admins", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "group_id" + t.integer "user_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.index ["group_id", "user_id"], name: "index_group_associations_on_group_id_and_user_id", using: :btree + t.index ["group_id"], name: "fk_rails_1a1d29d2d3" + t.index ["user_id"], name: "fk_rails_0ac5a6fa32" end - create_table "groups", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "name" - t.integer "gid" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "deleted_by" + create_table "group_associations", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "user_id" + t.integer "group_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["group_id", "user_id"], name: "index_group_associations_on_group_id_and_user_id" + t.index ["group_id"], name: "index_group_associations_on_group_id" + t.index ["user_id"], name: "index_group_associations_on_user_id" + end + + create_table "groups", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "name" + t.integer "gid" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "deleted_by" t.datetime "deleted_at" - t.string "description" - t.index ["gid"], name: "index_groups_on_gid", using: :btree - t.index ["name"], name: "index_groups_on_name", unique: true, using: :btree - end - - create_table "host_access_groups", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "host_machine_id" - t.integer "group_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["host_machine_id", "group_id"], name: "index_host_access_groups_on_host_machine_id_and_group_id", using: :btree - end - - create_table "host_machines", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "api_key" - t.string "access_key" - t.boolean "default_admins", default: true - t.index ["access_key"], name: "index_host_machines_on_access_key", using: :btree - end - - create_table "hosts", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "host_pattern" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "user_id" + t.string "description" + t.index ["gid"], name: "index_groups_on_gid" + t.index ["name"], name: "index_groups_on_name", unique: true + end + + create_table "host_access_groups", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "host_machine_id" + t.integer "group_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["group_id"], name: "index_host_access_groups_on_group_id" + t.index ["host_machine_id", "group_id"], name: "index_host_access_groups_on_host_machine_id_and_group_id" + t.index ["host_machine_id"], name: "index_host_access_groups_on_host_machine_id" + end + + create_table "host_machines", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "api_key" + t.string "access_key" + t.boolean "default_admins", default: true + t.index ["access_key"], name: "index_host_machines_on_access_key" + end + + create_table "hosts", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "host_pattern" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "user_id" t.datetime "deleted_at" - t.integer "deleted_by" - t.index ["deleted_at"], name: "index_hosts_on_deleted_at", using: :btree - t.index ["deleted_by"], name: "index_hosts_on_deleted_by", using: :btree - t.index ["host_pattern"], name: "index_hosts_on_host_pattern", using: :btree - t.index ["user_id"], name: "index_hosts_on_user_id", using: :btree - end - - create_table "ip_addresses", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "address" - t.string "mac_address" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "host_machine_id" - t.index ["address"], name: "index_ip_addresses_on_address", using: :btree - t.index ["host_machine_id"], name: "index_ip_addresses_on_host_machine_id", using: :btree - t.index ["mac_address"], name: "index_ip_addresses_on_mac_address", using: :btree - end - - create_table "organisations", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "name" - t.string "website" - t.string "domain" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "country" - t.string "state" - t.string "address" - t.string "unit_name" - t.string "admin_email_address" - t.string "slug" - t.string "cert_fingerprint" - t.text "cert_key", limit: 65535 - t.text "cert_private_key", limit: 65535 - end - - create_table "saml_app_configs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "group_id" - t.string "sso_url" - t.text "config", limit: 4294967295, collation: "utf8mb4_bin" - t.integer "organisation_id" - t.string "app_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["group_id"], name: "index_saml_app_configs_on_group_id", using: :btree - t.index ["organisation_id"], name: "index_saml_app_configs_on_organisation_id", using: :btree - end - - create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false - t.string "reset_password_token" + t.integer "deleted_by" + t.index ["deleted_at"], name: "index_hosts_on_deleted_at" + t.index ["deleted_by"], name: "index_hosts_on_deleted_by" + t.index ["host_pattern"], name: "index_hosts_on_host_pattern" + t.index ["user_id"], name: "index_hosts_on_user_id" + end + + create_table "ip_addresses", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "address" + t.string "mac_address" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "host_machine_id" + t.index ["address"], name: "index_ip_addresses_on_address" + t.index ["host_machine_id"], name: "index_ip_addresses_on_host_machine_id" + t.index ["mac_address"], name: "index_ip_addresses_on_mac_address" + end + + create_table "organisations", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "name" + t.string "website" + t.string "domain" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "country" + t.string "state" + t.string "address" + t.string "unit_name" + t.string "admin_email_address" + t.string "slug" + t.string "cert_fingerprint" + t.text "cert_key" + t.text "cert_private_key" + end + + create_table "saml_app_configs", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "group_id" + t.string "sso_url" + t.text "config", limit: 4294967295, collation: "utf8mb4_bin" + t.integer "organisation_id" + t.string "app_name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["group_id"], name: "index_saml_app_configs_on_group_id" + t.index ["organisation_id"], name: "index_saml_app_configs_on_organisation_id" + end + + create_table "users", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.integer "sign_in_count", default: 0, null: false + t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" - t.string "current_sign_in_ip" - t.string "last_sign_in_ip" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "provider" - t.string "uid" - t.string "name" - t.string "auth_key" - t.string "provisioning_uri" - t.boolean "active", default: true - t.boolean "admin", default: false - t.string "home_dir" - t.string "shell" - t.text "public_key", limit: 65535 - t.string "user_login_id" - t.string "product_name" - t.string "access_key" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "provider" + t.string "uid" + t.string "name" + t.string "auth_key" + t.string "provisioning_uri" + t.boolean "active", default: true + t.boolean "admin", default: false + t.string "home_dir" + t.string "shell" + t.text "public_key" + t.string "user_login_id" + t.string "product_name" + t.string "access_key" t.datetime "deactivated_at" - t.index ["email"], name: "index_users_on_email", unique: true, using: :btree - t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree - t.index ["uid"], name: "index_users_on_uid", using: :btree - t.index ["user_login_id"], name: "index_users_on_user_login_id", using: :btree - end - - create_table "versions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "item_type", limit: 191, null: false - t.integer "item_id", null: false - t.string "event", null: false - t.string "whodunnit" - t.text "object", limit: 4294967295 - t.text "object_changes", limit: 65535 - t.datetime "created_at" - t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id", using: :btree - end - - create_table "vpn_domain_name_servers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "vpn_id" - t.string "server_address" + t.index ["email"], name: "index_users_on_email", unique: true + t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true + t.index ["uid"], name: "index_users_on_uid" + t.index ["user_login_id"], name: "index_users_on_user_login_id" + end + + create_table "versions", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| + t.string "item_type", limit: 191, null: false + t.integer "item_id", null: false + t.string "event", null: false + t.string "whodunnit" + t.text "object", limit: 4294967295 + t.text "object_changes" t.datetime "created_at" - t.datetime "updated_at" + t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id" end - create_table "vpn_group_associations", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "group_id" - t.integer "vpn_id" - t.datetime "created_at" - t.datetime "updated_at" - t.index ["group_id"], name: "fk_rails_67a460ac90", using: :btree - t.index ["vpn_id"], name: "fk_rails_9be3690c1d", using: :btree + create_table "vpn_domain_name_servers", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "vpn_id" + t.string "server_address" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table "vpn_group_user_associations", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "user_id" - t.integer "vpn_id" - t.integer "group_id" - t.datetime "created_at" - t.datetime "updated_at" - t.index ["group_id"], name: "fk_rails_30de0bd58e", using: :btree - t.index ["user_id"], name: "fk_rails_275419a627", using: :btree - t.index ["vpn_id"], name: "fk_rails_dbd29a5c87", using: :btree + create_table "vpn_group_associations", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "group_id" + t.integer "vpn_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["group_id"], name: "fk_rails_67a460ac90" + t.index ["vpn_id"], name: "fk_rails_9be3690c1d" end - create_table "vpn_search_domains", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "vpn_id" - t.string "search_domain" - t.datetime "created_at" - t.datetime "updated_at" + create_table "vpn_group_user_associations", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "user_id" + t.integer "vpn_id" + t.integer "group_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["group_id"], name: "fk_rails_30de0bd58e" + t.index ["user_id"], name: "fk_rails_275419a627" + t.index ["vpn_id"], name: "fk_rails_dbd29a5c87" end - create_table "vpn_supplemental_match_domains", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.integer "vpn_id" - t.string "supplemental_match_domain" - t.datetime "created_at" - t.datetime "updated_at" + create_table "vpn_search_domains", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "vpn_id" + t.string "search_domain" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end - create_table "vpns", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t| - t.string "name" - t.string "host_name" - t.datetime "created_at" - t.datetime "updated_at" - t.string "ip_address" - t.string "uuid" + create_table "vpn_supplemental_match_domains", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.integer "vpn_id" + t.string "supplemental_match_domain" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end + create_table "vpns", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| + t.string "name" + t.string "host_name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "ip_address" + t.string "uuid" + end + + add_foreign_key "access_tokens", "users" + add_foreign_key "api_resources", "groups" + add_foreign_key "api_resources", "users" + add_foreign_key "group_admins", "groups" + add_foreign_key "group_admins", "users" + add_foreign_key "hosts", "users" + add_foreign_key "ip_addresses", "host_machines" + add_foreign_key "saml_app_configs", "groups" + add_foreign_key "saml_app_configs", "organisations" + add_foreign_key "vpn_group_associations", "groups" + add_foreign_key "vpn_group_associations", "vpns" + add_foreign_key "vpn_group_user_associations", "groups" + add_foreign_key "vpn_group_user_associations", "users" + add_foreign_key "vpn_group_user_associations", "vpns" end