X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3244635aa11878135a014cf2c9ec9177f8e9d0ba..34e3e51456774127d43408b7ab65c24f41373f62:/db/migrate/040_create_oauth_tables.rb diff --git a/db/migrate/040_create_oauth_tables.rb b/db/migrate/040_create_oauth_tables.rb index 95d690512..d1095f834 100644 --- a/db/migrate/040_create_oauth_tables.rb +++ b/db/migrate/040_create_oauth_tables.rb @@ -12,7 +12,7 @@ class CreateOauthTables < ActiveRecord::Migration t.timestamps end add_index :client_applications, :key, :unique => true - + create_table :oauth_tokens do |t| t.integer :user_id t.string :type, :limit => 20 @@ -22,9 +22,9 @@ class CreateOauthTables < ActiveRecord::Migration t.timestamp :authorized_at, :invalidated_at t.timestamps end - + add_index :oauth_tokens, :token, :unique => true - + create_table :oauth_nonces do |t| t.string :nonce t.integer :timestamp @@ -32,7 +32,7 @@ class CreateOauthTables < ActiveRecord::Migration t.timestamps end add_index :oauth_nonces, [:nonce, :timestamp], :unique => true - + end def self.down