cartodb-4.42/db/migrate/20180412060415_add_personal_data_fields_to_users.rb

19 lines
419 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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
)