mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
Add explicit rails versioning in migrations
This commit is contained in:
parent
45fa13c815
commit
8359abcf92
386 changed files with 386 additions and 386 deletions
|
@ -1,4 +1,4 @@
|
|||
class Init < ActiveRecord::Migration
|
||||
class Init < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domains do |t|
|
||||
t.string :name # ascii, utf8 will be converted on the fly
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateEppUsers < ActiveRecord::Migration
|
||||
class CreateEppUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :epp_users do |t|
|
||||
t.integer :registrar_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateEppSessions < ActiveRecord::Migration
|
||||
class CreateEppSessions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :epp_sessions do |t|
|
||||
t.string :session_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameDirtyToDomains < ActiveRecord::Migration
|
||||
class AddNameDirtyToDomains < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domains, :name_dirty, :string
|
||||
add_column :domains, :name_puny, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CountriesTableRename < ActiveRecord::Migration
|
||||
class CountriesTableRename < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_table :country_id, :countries
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddressColumnRename < ActiveRecord::Migration
|
||||
class AddressColumnRename < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_column :addresses, :address, :street
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddIdentToContact < ActiveRecord::Migration
|
||||
class AddIdentToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :ident, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddReservedDomains < ActiveRecord::Migration
|
||||
class AddReservedDomains < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
create_table :reserved_domains do |t|
|
||||
t.string :name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddIdentTypeToContact < ActiveRecord::Migration
|
||||
class AddIdentTypeToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :ident_type, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPeriodToDomain < ActiveRecord::Migration
|
||||
class AddPeriodToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domains, :period, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddContactsToDomain < ActiveRecord::Migration
|
||||
class AddContactsToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domain_contacts do |t|
|
||||
t.integer :contact_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddOrgNameToContact < ActiveRecord::Migration
|
||||
class AddOrgNameToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :org_name, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameserversToDomain < ActiveRecord::Migration
|
||||
class AddNameserversToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domains_nameservers do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RenameNameserverName < ActiveRecord::Migration
|
||||
class RenameNameserverName < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_column :nameservers, :name, :hostname
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddUserStampsToContact < ActiveRecord::Migration
|
||||
class AddUserStampsToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :created_by_id, :integer
|
||||
add_column :contacts, :updated_by_id, :integer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPeriodUnitToDomain < ActiveRecord::Migration
|
||||
class AddPeriodUnitToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domains, :period_unit, :char
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddStreetsToAddress < ActiveRecord::Migration
|
||||
class AddStreetsToAddress < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :addresses, :street2, :string
|
||||
add_column :addresses, :street3, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddIpv6ToNameserver < ActiveRecord::Migration
|
||||
class AddIpv6ToNameserver < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_column :nameservers, :ip, :ipv4
|
||||
add_column :nameservers, :ipv6, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateSettingGroups < ActiveRecord::Migration
|
||||
class CreateSettingGroups < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :setting_groups do |t|
|
||||
t.string :code
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class PopulateSettings < ActiveRecord::Migration
|
||||
class PopulateSettings < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
SettingGroup.create(
|
||||
code: 'domain_validation',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddAuthInfoToContact < ActiveRecord::Migration
|
||||
class AddAuthInfoToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :auth_info, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDomainsStatuses < ActiveRecord::Migration
|
||||
class CreateDomainsStatuses < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domain_statuses do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class PopulateDomainStatuses < ActiveRecord::Migration
|
||||
class PopulateDomainStatuses < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
sg = SettingGroup.create(code: 'domain_statuses')
|
||||
sg.settings = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPostalInfoToAddress < ActiveRecord::Migration
|
||||
class AddPostalInfoToAddress < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :addresses, :name, :string
|
||||
add_column :addresses, :org_name, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDomainNameservers < ActiveRecord::Migration
|
||||
class CreateDomainNameservers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domain_nameservers, id: false do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropDomainsNameservers < ActiveRecord::Migration
|
||||
class DropDomainsNameservers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
drop_table :domains_nameservers
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddTransferFieldsToDomain < ActiveRecord::Migration
|
||||
class AddTransferFieldsToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domains, :transferred_at, :datetime
|
||||
add_column :domains, :transfer_requested_at, :datetime
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class PopulateGeneralDomainSettings < ActiveRecord::Migration
|
||||
class PopulateGeneralDomainSettings < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
SettingGroup.create(
|
||||
code: 'domain_general',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDomainTransfer < ActiveRecord::Migration
|
||||
class CreateDomainTransfer < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :domain_transfers do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveTransferFieldsFromDomain < ActiveRecord::Migration
|
||||
class RemoveTransferFieldsFromDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :domains, :transferred_at
|
||||
remove_column :domains, :transfer_requested_at
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateContactDisclosures < ActiveRecord::Migration
|
||||
class CreateContactDisclosures < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :contact_disclosures do |t|
|
||||
t.integer :contact_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RefactorDomainStatuses < ActiveRecord::Migration
|
||||
class RefactorDomainStatuses < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domain_statuses, :value, :string
|
||||
remove_column :domain_statuses, :setting_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDomainDirectlyToNameserver < ActiveRecord::Migration
|
||||
class AddDomainDirectlyToNameserver < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :nameservers, :domain_id, :integer
|
||||
remove_column :nameservers, :ns_set_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CleanRedundantFields < ActiveRecord::Migration
|
||||
class CleanRedundantFields < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
drop_table :domain_nameservers
|
||||
remove_column :domains, :admin_contact_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveAddressType < ActiveRecord::Migration
|
||||
class RemoveAddressType < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :addresses, :type, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameToContact < ActiveRecord::Migration
|
||||
class AddNameToContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :addresses, :name, :string
|
||||
remove_column :addresses, :org_name, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDeviseToUsers < ActiveRecord::Migration
|
||||
class AddDeviseToUsers < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
change_table(:users) do |t|
|
||||
## Database authenticatable
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddAdminToUsers < ActiveRecord::Migration
|
||||
class AddAdminToUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :admin, :boolean, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddIdentityCodeToUsers < ActiveRecord::Migration
|
||||
class AddIdentityCodeToUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :identity_code, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddRegistrarToUsers < ActiveRecord::Migration
|
||||
class AddRegistrarToUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :registrar_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateVersions < ActiveRecord::Migration
|
||||
class CreateVersions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :versions do |t|
|
||||
t.string :item_type, :null => false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class ContactAndVersionArchiving < ActiveRecord::Migration
|
||||
class ContactAndVersionArchiving < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :contact_versions do |t|
|
||||
t.string :item_type, :null => false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DomainRelatedArchives < ActiveRecord::Migration
|
||||
class DomainRelatedArchives < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
tables = [:domain_versions, :nameserver_versions, :domain_status_versions ]
|
||||
tables.each do |table|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddWaitUntilToDomainTransfer < ActiveRecord::Migration
|
||||
class AddWaitUntilToDomainTransfer < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domain_transfers, :wait_until, :datetime
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCountryToUsers < ActiveRecord::Migration
|
||||
class AddCountryToUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :country_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDnskeys < ActiveRecord::Migration
|
||||
class CreateDnskeys < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :dnskeys do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDnskeyRangeValidation < ActiveRecord::Migration
|
||||
class AddDnskeyRangeValidation < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
sg = SettingGroup.find_by(code: 'domain_validation')
|
||||
sg.settings << Setting.create(code: 'dnskeys_min_count'.underscore, value: '0')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddRegistrarToContacts < ActiveRecord::Migration
|
||||
class AddRegistrarToContacts < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :registrar_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDnskeySettings < ActiveRecord::Migration
|
||||
class AddDnskeySettings < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
sg = SettingGroup.create(code: 'dnskeys')
|
||||
sg.settings << Setting.create(code: Setting::DS_ALGORITHM, value: 1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDelegationSigner < ActiveRecord::Migration
|
||||
class CreateDelegationSigner < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :delegation_signers do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDelegationSignerToDnskey < ActiveRecord::Migration
|
||||
class AddDelegationSignerToDnskey < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :dnskeys, :delegation_signer_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddSnapshotToDomain < ActiveRecord::Migration
|
||||
class AddSnapshotToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domain_versions, :snapshot, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDsFileldsToDnskey < ActiveRecord::Migration
|
||||
class AddDsFileldsToDnskey < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :dnskeys, :ds_key_tag, :string
|
||||
add_column :dnskeys, :ds_alg, :integer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class ChangePublicKeyTypeToText < ActiveRecord::Migration
|
||||
class ChangePublicKeyTypeToText < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
change_column :dnskeys, :public_key, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateSettings < ActiveRecord::Migration
|
||||
class CreateSettings < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
drop_table :settings
|
||||
create_table :settings do |t|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CorrectSettings < ActiveRecord::Migration
|
||||
class CorrectSettings < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
drop_table :setting_groups
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateMessages < ActiveRecord::Migration
|
||||
class CreateMessages < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :messages do |t|
|
||||
t.integer :registrar_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDelayedJobs < ActiveRecord::Migration
|
||||
class CreateDelayedJobs < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
create_table :delayed_jobs, :force => true do |table|
|
||||
table.integer :priority, :default => 0, :null => false # Allows some jobs to jump to the front of the queue
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateKeyrelay < ActiveRecord::Migration
|
||||
class CreateKeyrelay < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :keyrelays do |t|
|
||||
t.integer :domain_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateZonefileSetting < ActiveRecord::Migration
|
||||
class CreateZonefileSetting < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def change
|
||||
create_table :zonefile_settings do |t|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddEeDomainObjects < ActiveRecord::Migration
|
||||
class AddEeDomainObjects < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
r = Registrar.create!(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddZonefileProcedure < ActiveRecord::Migration
|
||||
class AddZonefileProcedure < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveAddressTypeFromContactDisclosure < ActiveRecord::Migration
|
||||
class RemoveAddressTypeFromContactDisclosure < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :contact_disclosures, :int_name, :boolean
|
||||
remove_column :contact_disclosures, :int_org_name, :boolean
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNameserversCache < ActiveRecord::Migration
|
||||
class CreateNameserversCache < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
create_table :cached_nameservers, id: false do |t|
|
||||
t.string :hostname
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddSerialToZonefileProcedure < ActiveRecord::Migration
|
||||
class AddSerialToZonefileProcedure < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveDefaultsFromDisclosure < ActiveRecord::Migration
|
||||
class RemoveDefaultsFromDisclosure < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
change_column :contact_disclosures, :phone, :boolean, :default => nil
|
||||
change_column :contact_disclosures, :fax, :boolean, :default => nil
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveTtlFromZonefileDs < ActiveRecord::Migration
|
||||
class RemoveTtlFromZonefileDs < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class FixInvalidIpsInZonefileProdecure < ActiveRecord::Migration
|
||||
class FixInvalidIpsInZonefileProdecure < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCodeCacheForDomainContact < ActiveRecord::Migration
|
||||
class AddCodeCacheForDomainContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domain_contacts, :contact_code_cache, :string
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class GlueRecordsFixInZonefileProcedure < ActiveRecord::Migration
|
||||
class GlueRecordsFixInZonefileProcedure < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveNsCaching < ActiveRecord::Migration
|
||||
class RemoveNsCaching < ActiveRecord::Migration[6.0]
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def up
|
||||
execute <<-SQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateContactStatuses < ActiveRecord::Migration
|
||||
class CreateContactStatuses < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :contact_statuses do |t|
|
||||
t.string :value
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveRegistrarFromUser < ActiveRecord::Migration
|
||||
class RemoveRegistrarFromUser < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :users, :registrar_id
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class PopulateRoles < ActiveRecord::Migration
|
||||
class PopulateRoles < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_column :roles, :name, :code
|
||||
remove_column :users, :admin, :boolean
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateLegalDocuments < ActiveRecord::Migration
|
||||
class CreateLegalDocuments < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :legal_documents do |t|
|
||||
t.string :document_type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropCachedNameservers < ActiveRecord::Migration
|
||||
class DropCachedNameservers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
drop_table :cached_nameservers
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateApiLogTables < ActiveRecord::Migration
|
||||
class CreateApiLogTables < ActiveRecord::Migration[6.0]
|
||||
def connection
|
||||
ApiLog::Db.connection
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RenameEppUsersToApiUsers < ActiveRecord::Migration
|
||||
class RenameEppUsersToApiUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_table('epp_users', 'api_users')
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddJsonBasedVersions < ActiveRecord::Migration
|
||||
class AddJsonBasedVersions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
%w(address contact_disclosure contact contact_status country dnskey
|
||||
domain_contact domain domain_status domain_transfer api_user keyrelay
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateVersionAssociations < ActiveRecord::Migration
|
||||
class CreateVersionAssociations < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
create_table :version_associations do |t|
|
||||
t.integer :version_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddTransactionIdColumnToVersions < ActiveRecord::Migration
|
||||
class AddTransactionIdColumnToVersions < ActiveRecord::Migration[6.0]
|
||||
def self.up
|
||||
add_column :versions, :transaction_id, :integer
|
||||
add_index :versions, [:transaction_id]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropAllVersionsDisabledByDefault < ActiveRecord::Migration
|
||||
class DropAllVersionsDisabledByDefault < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
# All versions are depricated by log_* tables
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddVersions < ActiveRecord::Migration
|
||||
class AddVersions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
if ActiveRecord::Base.connection.table_exists? 'versions'
|
||||
rename_table :versions, :depricated_versions
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCreatorAndUpdater < ActiveRecord::Migration
|
||||
class AddCreatorAndUpdater < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
%w(address contact_disclosure contact contact_status country dnskey
|
||||
domain_contact domain domain_status domain_transfer api_user keyrelay
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddMoreFieldsToRegistrar < ActiveRecord::Migration
|
||||
class AddMoreFieldsToRegistrar < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :registrars, :phone, :string
|
||||
add_column :registrars, :email, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameServerVersionIds < ActiveRecord::Migration
|
||||
class AddNameServerVersionIds < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :log_domains, :nameserver_version_ids, :text, array: true, default: []
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddMetaToDomain < ActiveRecord::Migration
|
||||
class AddMetaToDomain < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
rename_column :log_domains, :nameserver_version_ids, :nameserver_ids
|
||||
add_column :log_domains, :tech_contact_ids, :text, array: true, default: []
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddSessionIdToLog < ActiveRecord::Migration
|
||||
class AddSessionIdToLog < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
%w(address contact_disclosure contact contact_status country dnskey
|
||||
domain_contact domain domain_status domain_transfer api_user keyrelay
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddWhoisBody < ActiveRecord::Migration
|
||||
class AddWhoisBody < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :domains, :whois_body, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RefactorCountries < ActiveRecord::Migration
|
||||
class RefactorCountries < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :registrars, :country_code, :string
|
||||
add_column :users, :country_code, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RefactorRoles < ActiveRecord::Migration
|
||||
class RefactorRoles < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
add_column :users, :roles, :string, array: true
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNewAddressFieldsToRegistrar < ActiveRecord::Migration
|
||||
class AddNewAddressFieldsToRegistrar < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
# get rid of old addresses, we will be migrating from the old db soon anyway
|
||||
remove_column :registrars, :address, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddStateToAddress < ActiveRecord::Migration
|
||||
class AddStateToAddress < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :addresses, :state, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class MergeApiUserAndUser < ActiveRecord::Migration
|
||||
class MergeApiUserAndUser < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :registrar_id, :integer
|
||||
add_column :users, :active, :boolean, default: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCountryCodeIdent < ActiveRecord::Migration
|
||||
class AddCountryCodeIdent < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :ident_country_code, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddIndexForContactCode < ActiveRecord::Migration
|
||||
class AddIndexForContactCode < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_index :contacts, :code
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateCertificates < ActiveRecord::Migration
|
||||
class CreateCertificates < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :certificates do |t|
|
||||
t.integer :api_user_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveCountryIdColumns < ActiveRecord::Migration
|
||||
class RemoveCountryIdColumns < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :registrars, :country_id, :integer
|
||||
remove_column :users, :country_id, :integer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddLegacyColumnsForRegistrar < ActiveRecord::Migration
|
||||
class AddLegacyColumnsForRegistrar < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :registrars, :url, :string
|
||||
add_column :registrars, :directo_handle, :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddLegacyColumnsForContact < ActiveRecord::Migration
|
||||
class AddLegacyColumnsForContact < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :contacts, :legacy_id, :integer
|
||||
remove_column :contacts, :type, :string
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue