cartodb/db/migrate/20160114082200_add_created_via_to_user_creations.rb

11 lines
300 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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