Merge remote-tracking branch 'origin/master' into 104525318-history_import

# Conflicts:
#	Gemfile
#	app/models/domain.rb
This commit is contained in:
Vladimir Krylov 2016-03-04 14:21:22 +02:00
commit 34dd6af4f7
135 changed files with 4123 additions and 814 deletions

View file

@ -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

View 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

View file

@ -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

View 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

View file

@ -0,0 +1,5 @@
class AddInDirectoToInvoice < ActiveRecord::Migration
def change
add_column :invoices, :in_directo, :boolean, default: false
end
end

View file

@ -0,0 +1,5 @@
class IndexDomainStatuses < ActiveRecord::Migration
def change
add_index :domains, :statuses, using: :gin
end
end