X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..15b104f4ff4614aa78c01180b6a9b89dd5a1400f:/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 d1095f834..e718bbc17 100644 --- a/db/migrate/040_create_oauth_tables.rb +++ b/db/migrate/040_create_oauth_tables.rb @@ -1,4 +1,4 @@ -class CreateOauthTables < ActiveRecord::Migration +class CreateOauthTables < ActiveRecord::Migration[5.0] def self.up create_table :client_applications do |t| t.string :name @@ -9,7 +9,7 @@ class CreateOauthTables < ActiveRecord::Migration t.string :secret, :limit => 50 t.integer :user_id - t.timestamps + t.timestamps :null => true end add_index :client_applications, :key, :unique => true @@ -20,7 +20,7 @@ class CreateOauthTables < ActiveRecord::Migration t.string :token, :limit => 50 t.string :secret, :limit => 50 t.timestamp :authorized_at, :invalidated_at - t.timestamps + t.timestamps :null => true end add_index :oauth_tokens, :token, :unique => true @@ -29,10 +29,9 @@ class CreateOauthTables < ActiveRecord::Migration t.string :nonce t.integer :timestamp - t.timestamps + t.timestamps :null => true end add_index :oauth_nonces, [:nonce, :timestamp], :unique => true - end def self.down @@ -40,5 +39,4 @@ class CreateOauthTables < ActiveRecord::Migration drop_table :oauth_tokens drop_table :oauth_nonces end - end