cartodb-4.42/db/migrate/20180412060415_add_personal_data_fields_to_users.rb
2024-04-06 05:25:13 +00:00

19 lines
419 B
Ruby

require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
add_column :users, :company, String
add_column :users, :phone, String
add_column :users, :industry, String
add_column :users, :job_role, String
end,
Proc.new do
drop_column :users, :company
drop_column :users, :phone
drop_column :users, :industry
drop_column :users, :job_role
end
)