]> git.openstreetmap.org Git - rails.git/commitdiff
Fix deprecation warnings in migrations
authorTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 16:11:02 +0000 (16:11 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 16:11:02 +0000 (16:11 +0000)
db/migrate/040_create_oauth_tables.rb
db/migrate/044_create_user_roles.rb
db/migrate/045_create_user_blocks.rb
db/migrate/20120318201948_create_redactions.rb

index 4b372536535efef4cc7a2af39b712783d65b0327..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,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
index b5e43940628620c264a1c30237d48f893ce907ca..bae5a3cadb62254a9241b1f16f3e3544f141705d 100644 (file)
@@ -8,7 +8,7 @@ class CreateUserRoles < ActiveRecord::Migration
       t.column :user_id, :bigint, :null => false
       t.column :role, :user_role_enum, :null => false
 
-      t.timestamps
+      t.timestamps :null => true
     end
 
     User.where(:administrator => true).each do |user|
index cdb36cd15c8a5deda07a36fdc827fe03a9c05dc8..71081f5c139a4a480236935307941f414486cff7 100644 (file)
@@ -10,7 +10,7 @@ class CreateUserBlocks < ActiveRecord::Migration
       t.column :needs_view,   :boolean,  :null => false, :default => false
       t.column :revoker_id,   :bigint
 
-      t.timestamps
+      t.timestamps :null => true
     end
 
     add_foreign_key :user_blocks, :users, :name => "user_blocks_user_id_fkey"
index bb9786db45f65bd849bba5a934eb37517108439b..8a1cf6bf302a0af0c2ca3077a001b94a23b5d0dd 100644 (file)
@@ -6,7 +6,7 @@ class CreateRedactions < ActiveRecord::Migration
       t.string :title
       t.text :description
 
-      t.timestamps
+      t.timestamps :null => true
     end
 
     [:nodes, :ways, :relations].each do |tbl|