internetee-registry/db/migrate/20151209122816_create_business_registry_caches.rb

13 lines
367 B
Ruby

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