parent
b1e7d72e5b
commit
3416c96dc1
@ -1,16 +1,19 @@
|
||||
Sequel.migration do
|
||||
up do
|
||||
drop_table :oauth_nonces
|
||||
end
|
||||
require 'carto/db/migration_helper'
|
||||
|
||||
down do
|
||||
include Carto::Db::MigrationHelper
|
||||
|
||||
migration(
|
||||
Proc.new do
|
||||
drop_table :oauth_nonces
|
||||
end,
|
||||
Proc.new do
|
||||
create_table :oauth_nonces do
|
||||
Uuid :id, primary_key: true
|
||||
String :nonce
|
||||
Integer :timestamp
|
||||
DateTime :created_at, :null => false
|
||||
DateTime :updated_at, :null => false
|
||||
index [:nonce, :timestamp], :unique => true
|
||||
DateTime :created_at, null: false
|
||||
DateTime :updated_at, null: false
|
||||
index [:nonce, :timestamp], unique: true
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
Loading…
Reference in new issue