internetee-registry/db/migrate/20151209122816_create_business_registry_caches.rb
2021-04-26 18:54:26 +05:00

13 lines
372 B
Ruby

class CreateBusinessRegistryCaches < ActiveRecord::Migration[6.0]
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