Files
nairobi/db/migrate/20150822095305_create_verified_users.rb
Julian Herrero f668317cc1 Use #data_source_exists? instead of #table_exists?
DEPRECATION WARNING: #table_exists? currently checks both tables and
views. This behavior is deprecated and will be changed with Rails 5.1
to only check tables. Use #data_source_exists? instead.
2019-04-17 17:40:55 +02:00

15 lines
362 B
Ruby

class CreateVerifiedUsers < ActiveRecord::Migration
def change
unless ActiveRecord::Base.connection.data_source_exists?("verified_users")
create_table :verified_users do |t|
t.string :document_number
t.string :document_type
t.string :phone
t.string :email
t.timestamps null: false
end
end
end
end