cartodb-4.42/db/migrate/20160114082200_add_created_via_to_user_creations.rb

11 lines
300 B
Ruby
Raw Normal View History

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