mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Merge remote-tracking branch 'origin/master' into 104525318-history_import
# Conflicts: # Gemfile # app/models/domain.rb
This commit is contained in:
commit
34dd6af4f7
135 changed files with 4123 additions and 814 deletions
|
@ -0,0 +1,18 @@
|
|||
class NameAndPasswordForReservedDomain < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :reserved_domains, :name, :string
|
||||
add_column :reserved_domains, :password, :string
|
||||
add_index :reserved_domains, :name
|
||||
|
||||
ReservedDomain.find_each do |domain|
|
||||
names = domain.names
|
||||
domain.update_columns(name: names.keys.first, password: names.values.first)
|
||||
end
|
||||
|
||||
remove_column :reserved_domains, :names
|
||||
end
|
||||
|
||||
def down
|
||||
|
||||
end
|
||||
end
|
13
db/migrate/20151209122816_create_business_registry_caches.rb
Normal file
13
db/migrate/20151209122816_create_business_registry_caches.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class CreateBusinessRegistryCaches < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :business_registry_caches do |t|
|
||||
t.string :ident
|
||||
t.string :ident_country_code
|
||||
t.datetime :retrieved_on
|
||||
t.string :associated_businesses, array: true
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
add_index :business_registry_caches, :ident
|
||||
end
|
||||
end
|
|
@ -0,0 +1,11 @@
|
|||
class NameAndPasswordForBlockedDomain < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :blocked_domains, :name, :string
|
||||
add_index :blocked_domains, :name
|
||||
remove_column :blocked_domains, :names
|
||||
end
|
||||
|
||||
def down
|
||||
|
||||
end
|
||||
end
|
10
db/migrate/20160113143447_create_directos.rb
Normal file
10
db/migrate/20160113143447_create_directos.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class CreateDirectos < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :directos do |t|
|
||||
t.belongs_to :item, index: true, polymorphic: true
|
||||
t.json :response
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
5
db/migrate/20160118092454_add_in_directo_to_invoice.rb
Normal file
5
db/migrate/20160118092454_add_in_directo_to_invoice.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddInDirectoToInvoice < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :invoices, :in_directo, :boolean, default: false
|
||||
end
|
||||
end
|
5
db/migrate/20160218102355_index_domain_statuses.rb
Normal file
5
db/migrate/20160218102355_index_domain_statuses.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class IndexDomainStatuses < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :domains, :statuses, using: :gin
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue