X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..81bac0b09b2d03de76c8885f6d77c9297a3ead34:/db/migrate/045_create_user_blocks.rb diff --git a/db/migrate/045_create_user_blocks.rb b/db/migrate/045_create_user_blocks.rb index cdb36cd15..4328e0b97 100644 --- a/db/migrate/045_create_user_blocks.rb +++ b/db/migrate/045_create_user_blocks.rb @@ -1,6 +1,4 @@ -require "migrate" - -class CreateUserBlocks < ActiveRecord::Migration +class CreateUserBlocks < ActiveRecord::Migration[4.2] def change create_table :user_blocks do |t| t.column :user_id, :bigint, :null => false @@ -10,7 +8,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"