cartodb/db/migrate/20140314101744_create_synchronization_oauths.rb

17 lines
415 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
create_table :synchronization_oauths do
primary_key :id
Uuid :user_id, index: true
Text :service, index: true
Text :token
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
end
end
down do
drop_table :synchronization_oauths
end
end