X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac7bb003ec9726d23d0a537f347c2dd4c8f7204a..7b057545c0b2030aad9981bd93699f9e33ad7d5f:/db/migrate/045_create_user_blocks.rb?ds=sidebyside diff --git a/db/migrate/045_create_user_blocks.rb b/db/migrate/045_create_user_blocks.rb index e97822a0d..3ccd522f9 100644 --- a/db/migrate/045_create_user_blocks.rb +++ b/db/migrate/045_create_user_blocks.rb @@ -1,6 +1,6 @@ -require 'migrate' +require "migrate" -class CreateUserBlocks < ActiveRecord::Migration +class CreateUserBlocks < ActiveRecord::Migration[5.0] def change create_table :user_blocks do |t| t.column :user_id, :bigint, :null => false @@ -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"