cartodb-4.29/db/migrate/20160114082200_add_created_via_to_user_creations.rb
2020-06-15 10:58:47 +08:00

11 lines
300 B
Ruby

Sequel.migration do
up do
add_column :user_creations, :created_via, :text, null: false, default: 'org_signup'
SequelRails.connection.run("update user_creations set created_via = 'api' where created_via_api = 'true'")
end
down do
drop_column :user_creations, :created_via
end
end