cartodb-4.29/db/migrate/20180412060415_add_personal_data_fields_to_users.rb
2020-06-15 10:58:47 +08: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
)