]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/040_create_oauth_tables.rb
Update to rails 4.2.9
[rails.git] / db / migrate / 040_create_oauth_tables.rb
index d1095f8344b2cfbbcdc3a1f404d502b9a98a944d..a2eeeca7a6754f27395b485a600cc83f10b2a898 100644 (file)
@@ -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