]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/040_create_oauth_tables.rb
Merge remote-tracking branch 'upstream/pull/2037'
[rails.git] / db / migrate / 040_create_oauth_tables.rb
index 4b372536535efef4cc7a2af39b712783d65b0327..e718bbc171095ae34ab1abaccdcfd6766b4f525f 100644 (file)
@@ -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,7 +29,7 @@ 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